Skip to main content
GDT
SkillFreeBy GameSkill · tuned

Godot Physics

/godot-physics

Use Godot 4.7 physics bodies and detection in 2D and 3D: RigidBody, StaticBody, Area, and CharacterBody; collision layers vs masks; contact/overlap signals; and raycasts (RayCast nodes and direct space-state queries).

License
Apache-2.0
By
By GameSkill
Download ZIP

Part of

Awesome Gamedev Agent Skills

77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.

Tested by GameSkill

30/30 checks passed on Godot 4.7.2 (2026-10-30): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.

Test report

What this skill does

When it triggers

7 physics bodies and detection in 2D and 3D: RigidBody, StaticBody, Area, and CharacterBody; collision layers vs masks; contact/overlap signals; and raycasts (RayCast nodes and direct space-state queries).6+. …

GameSkill's tested copy

GameSkill's tuned build of this skill: the skill files from commit 19d93f97c9c1, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.

Download tested ZIP (38 KB)Roadmap: Engine basics

License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Godot Physics

Self-check

  • 层是“我是什么”,遮罩是“我找什么”,A 要发现 B,B 的层必须在 A 的遮罩里 / Layer = what I am, mask = what I look for
  • 不要直接改 RigidBody 的 position,用冲量、力或 linear_velocity / Never set position on a RigidBody; use impulses, forces or linear_velocity
  • Area 要检测别人得开 monitoring,要被别人检测得开 monitorable / Area needs monitoring to detect and monitorable to be detected
  • 射线在 _physics_process 里读,移动后同一帧要 force_raycast_update() / Read rays in _physics_process; call force_raycast_update() after moving
  • intersect_ray 排除自身要传 RID 数组:query.exclude = [self.get_rid()] / Exclude self with an Array[RID], not nodes

Install

Tell your AI

Install the skill from https://gameskill.dev/skills/godot-physics/install.md

GameSkill's tested copy

Tested copy into .claude/skills/
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/godot-physics.zip -o /tmp/gameskill-godot-physics.zip
unzip -oq /tmp/gameskill-godot-physics.zip -d .claude/skills
rm /tmp/gameskill-godot-physics.zip

What you get

  • Worked steps: Collision layers vs masks; Area2D as a trigger / hurtbox; Applying force and impulse to a RigidBody3D; Raycast two ways
  • A pitfalls section with the mistakes to avoid
  • Bundled 1 reference doc the agent reads when needed
  • Written for Godot 4.7

Good fit

  • Configuring collision layers/masks, detecting overlaps with Area2D/Area3D, applying forces to a RigidBody
  • Casting rays in a Godot project (.tscn with physics bodies), including 3D projects running Jolt Physics, the default 3D engine for projects created in 4.6+

Try this prompt

Prompt
Set up collision layers, an Area2D hurtbox and a raycast for line of sight.

About this skill

Use Godot 4.7 physics bodies and detection in 2D and 3D: RigidBody, StaticBody, Area, and CharacterBody; collision layers vs masks; contact/overlap signals; and raycasts (RayCast nodes and direct space-state queries). Use when configuring collision layers/masks, detecting overlaps with Area2D/Area3D, applying forces to a RigidBody, or casting rays in a Godot project (.tscn with physics bodies), including 3D projects running Jolt Physics, the default 3D engine for projects created in 4.6+.

From the godot-physics SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.

What's inside

  • Collision layers vs masks (set from code)
  • Area2D as a trigger / hurtbox
  • Applying force and impulse to a RigidBody3D
  • Raycast two ways
  • Jolt Physics (3D) differences

Requirements

  • Godot 4.7

FAQ

MATCHED PRO KIT$8.25/mo

Roguelike Deckbuilder Starter (Godot 4 + Web)

Stop staring at an empty project: a complete white-label playable Roguelike Deckbuilder template in Godot 4 & Web HTML5 — Opening 3-Slot Blessings, Non-Crossing DAG Map, Hand-Arc Combat, 50% Boss Phase Lock, Campfire/Shop Purge, atomic SaveStore, EN/ZH Localization, balanced JSON/CSV tables & 1,000-run HTML balance CLI.

  • Runnable Godot 4.3+ project (project.godot, Main.tscn, GameBus, atomic SaveStore & EN/ZH LocService)
  • Playable zero-build Web HTML5 starter with hand arc, 2f hit-flash, micro shake & checksummed save

Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.

Works well with

Skills the author points to as related or as the better fit for neighbouring tasks.

More from Awesome Gamedev Agent Skills

See all 44

Similar skills