CharacterBody3D
3D character controller with physics. Handle gravity, movement, jumping, and collision detection for 3D characters.
3D
No shortcutAdvanced15 min readQuick Reference
CharacterBody3D
Godot EngineKeyboard Shortcut
N/A
Where to Find
Scene dock — Create New Node > Node3D category
Best Used For
- ▸Build 3D game worlds and characters
- ▸Set up lighting and environmental effects
- ▸Configure 3D cameras and rendering
Advanced⏱ 1–2 hours to master
Key Settings
Add:Movement:Gravity:Input:
CharacterBody3D gives you full control over 3D character movement with physics collision detection. Uses move_and_slide() for automatic collision handling in 3D space.
Where to Find It
Found under Node3D > Physics. Requires CollisionShape3D child.
How to Use
- Add: Add CharacterBody3D with a CollisionShape3D child.
- Movement: Use
velocityandmove_and_slide()in_physics_process(delta). - Gravity: Apply gravity manually each frame for custom control.
- Input: Use
Input.get_axis()for WASD or controller movement.
Pro Tips
- Use
is_on_floor()for jump detection. - Set
up_directionfor wall-jumping mechanics.