/godot-agent-skills:godot-physicsfrom godot-agent-skills
Provides guidance on Godot 4.7 physics including body types (CharacterBody, RigidBody, AnimatableBody, StaticBody, Area), movement, collisions, triggers, raycasts, shape queries, physics interpolation, ragdolls, joints, and Jolt-specific settings. Useful for implementing movement, collisions, triggers, projectiles, vehicles, or ragdolls.
Ships in godot-agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Check the engine first: project_inspect.py → physics_3d. New 4.6+ projects use Jolt. Older ones may still run GodotPhysics3D (DEFAULT). 2D always uses Godot's 2D engine.
Code that touches physics goes in _physics_process (fixed tick, physics/common/physics_ticks_per_second, default 60).
| Body | Use for | You control |
|---|---|---|
CharacterBody2D/3D | players, NPCs, anything with scripted movement | velocity, then move_and_slide() |
RigidBody2D/3D | crates, debris, balls, physics props | forces and impulses (apply_central_impulse) or _integrate_forces(state) |
AnimatableBody2D/3D | moving platforms, doors, elevators | position via AnimationPlayer or a tween (sync_to_physics) |
StaticBody2D/3D | level geometry (constant_linear_velocity for conveyors) | nothing |
Area2D/3D | triggers, hitboxes, pickups, gravity and wind zones | signals and overlap queries |
Never move a RigidBody by setting position each frame. Use forces, freeze, or PhysicsServer3D.body_set_state for teleports. |
velocity += get_gravity() * delta reads Area overrides too. Then call move_and_slide(), which takes no arguments in 4.x.up_direction, floor_max_angle, floor_snap_length (raise it for stairs and ramps), floor_stop_on_slope, floor_constant_speed. Also is_on_floor/wall/ceiling() and get_floor_normal().platform_on_leave (keep or drop the platform's velocity). Riding works automatically on AnimatableBody and RigidBody.get_slide_collision_count() → get_slide_collision(i).get_collider(), for example to push rigid bodies (see the reference).project_inspect.py lists them).set_collision_layer_value(3, true) and set_collision_mask_value(2, false) use 1-based layer numbers. Exports: @export_flags_3d_physics var mask := 1.RayCast3D/ShapeCast3D nodes for persistent checks (ground, line of sight, interaction). Call force_raycast_update() for an immediate result within the same frame.get_world_3d().direct_space_state.intersect_ray(PhysicsRayQueryParameters3D.create(from, to, mask, [self_rid])) returns a dictionary (position, normal, collider, rid, face_index), or empty on a miss. Run it only in _physics_process.camera.project_ray_origin(mouse) and project_ray_normal, then the ray query above. Control nodes must not swallow the event first (mouse_filter).intersect_shape, cast_motion and get_rest_info work for area-of-effect and sweeps.Turn on physics/common/physics_interpolation. Move and rotate physics-driven objects only in _physics_process. After a teleport, call reset_physics_interpolation(). Cameras that follow interpolated targets should follow in _process, or use get_global_transform_interpolated().
Use Skeleton3D → PhysicalBoneSimulator3D (4.3+) → PhysicalBone3D children, created with the Skeleton3D menu "Create Physical Skeleton". Toggle with physical_bones_start_simulation()/physical_bones_stop_simulation(), and use influence to blend with animation. Active ragdolls should be driven by the simulator, not by moving the bones yourself.
Area3D reports overlaps with SoftBody3D (4.7) and static bodies.node_b (setting physics/jolt_physics_3d/joints/world_node).WorldBoundaryShape3D has a limited effective size (limits/world_boundary_shape_size), and its plane.d sign flipped in 4.7. Prefer a big box for floors.face_index needs queries/enable_ray_cast_face_index. Kinematic contacts need simulation/generate_all_kinematic_contacts, which costs performance.limits/max_bodies, max_body_pairs and max_contact_constraints.Bullets and projectiles: use a raycast from the last to the current position each tick (hitscan), or RigidBody3D.continuous_cd = true. Thin walls plus fast bodies tunnel otherwise.
Controllers, interaction, pushing, queries and ragdoll code (compiled by the tests): references/patterns.md
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
godot-physics, characterbody, rigidbody, collision-layers, jolt
npx claudepluginhub el4cteo/godot-skills --plugin godot-agent-skills27 skills in this plugin
/godot-2d2D games in Godot 4.7 - pixel-art and HD setup, TileMapLayer (cells, terrains, custom data, runtime tiles, physics chunking), Parallax2D, Camera2D (limits, smoothing, shake), y-sort and z-index, 2D lights and normal maps, AnimatedSprite2D, one-way platforms, custom drawing, many-sprite performance. Use for platformers, top-down, tile-based or any 2D scene./godot-3d-gameplayBuilding 3D games in Godot 4.7 - third-person and orbit cameras (SpringArm3D), camera-relative movement, lock-on, top-down/RTS/isometric cameras, GridMap + MeshLibrary levels, CSG blockout and baking, modular kit import hints, Path3D rails, interactables, spawners, world-space UI, large worlds and LOD. Use for 3D player controllers, cameras or level building./godot-3d-rendering3D look in Godot 4.7 - renderer choice (Forward+/Mobile/Compatibility matrix), Environment (AgX, glow, fog, SSAO/SSR/SDFGI), lights incl. AreaLight3D, GI (SDFGI, VoxelGI, LightmapGI), HDR output, materials, glTF/Blender import suffixes, LOD and occlusion culling. Use for 3D scenes, lighting, materials, model import or visual quality./godot-addonsFinding, vetting, installing and maintaining Godot 4.7 addons - the in-editor Asset Store, editor plugins vs GDExtensions vs C# addons, compatibility and platform-binary checks, enabling plugins, versioning addons in git, optional dependencies, and a curated 4.7 list (LimboAI, Beehave, Dialogue Manager, Phantom Camera, Terrain3D, GodotSteam, billing, Mod Loader). Use when adding or fixing plugins./godot-animationAnimation in Godot 4.7 - AnimationPlayer and libraries, AnimationTree (state machines, blend spaces with sync_mode, one-shots, conditions), root motion, method/audio tracks, Tween recipes incl. tween_await (4.7), skeletons, the 4.6 IK framework (TwoBoneIK3D, FABRIK3D, CCDIK3D, SplineIK3D), LookAt/bone constraints, procedural animation. Use for character animation, cutscenes, UI motion or IK./godot-architectureStructure Godot 4.7 projects that scale - feature-based folders, scene composition and components, when to use autoloads, event bus, custom Resources as data, state machines, scene switching and loading screens, save/load (safe formats), groups and dependency injection, mixed GDScript + C# projects. Use when starting a project, adding a system, or refactoring Godot code.Other plugins' skills for the same job