godot-3d-gameplay
Installation
SKILL.md
3D Gameplay (4.7)
This skill covers how a 3D game plays: controllers, cameras, levels. Rendering is godot-3d-rendering, bodies and raycasts are godot-physics (it has the first-person controller), animation blending is godot-animation.
Scene layout that scales
Player (CharacterBody3D) # movement, script
├─ CollisionShape3D (capsule)
├─ Model (Node3D) # rotate this to face movement, not the body
│ └─ character.glb (AnimationTree lives here)
└─ CameraRig (Node3D, top_level) # follows the player in _process, owns the yaw
└─ Pitch (Node3D)
└─ SpringArm3D # camera collision
└─ Camera3D
top_level = trueon the rig keeps the camera from inheriting the body's rotation and physics jitter. Followplayer.get_global_transform_interpolated()when physics interpolation is on.- Turn the Model, not the body, so the collider and camera stay stable. Rotate with
lerp_angleorBasis.slerp. - Keep gameplay in the root script and expose
@exporttuning (speed, acceleration, jump, sensitivity).