Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers Godot 4.3+ physics bodies, collision shapes, raycasting, areas, ragdolls, soft bodies, Jolt Physics, and physics interpolation.
73% 100%+27 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 16 of 22 without it.
This test ran on v1. v4 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
All examples target Godot 4.3+ with no deprecated APIs. GDScript is shown first, then C#.
Related skills: player-controller for CharacterBody2D/3D movement patterns, component-system for hitbox/hurtbox composition, godot-optimization for physics performance tuning, camera-system for camera follow and interpolation, multiplayer-sync for networked physics, 2d-essentials for tile collision setup and 2D canvas layers.
Four collision-object types (the last three extend PhysicsBody2D/3D):
| Type | Moved by | Use for |
|---|---|---|
Area2D/3D | Code | Overlap detection, gravity zones, audio zones |
StaticBody2D/3D | Not moved (or constant_linear_velocity) | Walls, floors, conveyor belts |
RigidBody2D/3D | Physics engine | Crates, projectiles, debris, ragdolls |
CharacterBody2D/3D | Code | Players, enemies, NPCs (see player-controller) |
Every collision object needs at least one CollisionShape2D/3D (or CollisionPolygon2D/3D) child. Jolt Physics is built in since 4.4 (experimental, opt-in) and is the default 3D engine for projects created in 4.6+ — see Section 8; existing projects keep GodotPhysics until switched. 2D always uses GodotPhysics.
Critical rule: NEVER scale collision shapes or physics bodies via
scale. Use the shape's own size parameters (radius, extents, height) — scaling breaks collision accuracy.
| Method | Effect | When to use |
|---|---|---|
apply_force(force, position) | Continuous accel at point | Thrusters, wind, magnets |
apply_central_force(force) | Continuous accel at center | Gravity, constant push |
apply_impulse(impulse, position) | Instant velocity change at point | Bullet hit, explosion |
apply_central_impulse(impulse) | Instant velocity change at center | Jump, knockback |
apply_torque(torque) | Continuous angular accel | Steering, spinning |
apply_torque_impulse(impulse) | Instant angular velocity change | Impact spin |
See references/rigidbody-recipes.md for a thrust-and-spin example (GDScript + C#) using
apply_force+apply_central_impulse+apply_torque.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.