Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers Godot 4.7 2D and 3D physics: body types, collision layers and masks, Area overlap signals, raycasts, and Jolt.
55% 86%+32 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 12 of 22 without it.
This test ran on v5. v6 is the current version and hasn’t been tested on gemini-4-hydrogen yet.
3 of 3 safety checks passed
30 agent runs
Pick the body type, wire collision layers and masks, detect overlaps, cast rays, and know
where Jolt differs. Swap the 2D/3D suffix as needed. Targets Godot 4.7 (see Version
notes). 2D always uses Godot's own 2D engine.
Area, forces/impulses on a RigidBody, or rays
for line-of-sight and ground checks.When not to use: move_and_slide controllers → godot-2d-movement; tile collision
setup → godot-tilemap; engine-neutral feel (timestep, mass, jitter, CCD strategy) →
physics-tuning.
For 3D, read which engine runs before debugging behavior. In project.godot,
[physics] 3d/physics_engine="Jolt Physics" means Jolt; no line (DEFAULT) means
GodotPhysics3D. New 4.6+ projects write the Jolt line. The API is the same, but joints,
ray face indices, kinematic contacts and margins differ (see Gotchas).
Choose the body type: StaticBody never moves; AnimatableBody is moved by code or
animation and pushes others (platforms, doors); RigidBody is simulated (move it with
forces, impulses or linear_velocity, never position); CharacterBody is
script-driven; Area only detects and can override gravity/damping. Every body needs a
non-empty CollisionShape/CollisionPolygon child.
Configure layers and masks. Layers are what a body is; masks are what it scans.
A detects B only if B's layer bit is in A's mask. Name the bits in project.godot so
the .tscn values are readable:
[layer_names]
2d_physics/layer_1="player"
2d_physics/layer_2="walls"
2d_physics/layer_3="enemies"
In a .tscn, collision_layer = 1 and collision_mask = 6 (bits 2 and 3) are plain
integers; bit n is 1 << (n - 1). In code, set_collision_mask_value(3, true) uses
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.