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 = true on the rig keeps the camera from inheriting the body's rotation and physics jitter. Follow player.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_angle or Basis.slerp.
  • Keep gameplay in the root script and expose @export tuning (speed, acceleration, jump, sensitivity).
Installs
11
GitHub Stars
54
First Seen
8 days ago