godot-physics

Configure collision layers and physics bodies for Godot 4 2D games.

8|3|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/HubDev-AI/godot-ai-builder --skill godot-physics
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: godot-physics
Source: https://github.com/HubDev-AI/godot-ai-builder/tree/main/skills/godot-physics
Command: npx skills add https://github.com/HubDev-AI/godot-ai-builder --skill godot-physics

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Collision layer management and physics body setup are verbose and error-prone in Godot 4; this skill provides clear standards and patterns to implement consistent behavior across players, enemies, and environment.

Core Features & Use Cases

  • Collision Layer Standard mapping bits to roles for Player, Enemies, Pickups, etc.
  • Physics bodies templates for CharacterBody2D, Area2D, RigidBody2D, StaticBody2D.
  • Detection patterns (signals) for body_entered/area_entered and ray-casting basics.
  • Common setups for typical games (player vs walls vs enemies).

Quick Start

Create a new Godot 4 scene with a CharacterBody2D player, an Area2D for detection, and predefined collision layers for player, enemies, walls, and pickups.

Frequently Asked Questions about godot-physics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up collision layers in Godot 4 for players, enemies, and pickups?

Configure Godot 4 collision layers by mapping bits to specific roles like Player, Enemies, and Pickups. This skill provides standard templates to ensure consistent body interactions and clear layer semantics across your 2D game.

What is the best way to detect bodies entering an Area2D in Godot?

Detect bodies entering an Area2D in Godot by wiring the body_entered and area_entered signals. This skill outlines standard detection patterns and signal wiring to manage reliable runtime interactions.

How do I configure physics bodies like CharacterBody2D and RigidBody2D for 2D games?

Configure physics bodies like CharacterBody2D and RigidBody2D using standard templates for shape usage and collision settings. This skill provides predefined setups for players, enemies, walls, and environment interactions.

Why are my Godot 4 collision layers not working correctly between players and walls?

Godot 4 collision layers fail when bits are not mapped clearly to roles or when physics bodies have incorrect shape usage. This skill helps debug runtime configurations and apply standard templates to resolve unreliable interactions.

Does this approach support runtime adjustments for Area2D detectors and collision masks?

Yes, this approach supports runtime adjustments for Area2D detectors and collision masks. It provides standard templates and debugging patterns to maintain reliable interactions across players, enemies, and environment during gameplay.