Area2D
Detect overlaps and body enter/exit events for triggers, zones, and proximity detection.
Physics
No shortcutIntermediate6 min readQuick Reference
Area2D
Godot EngineKeyboard Shortcut
N/A
Where to Find
Scene dock — Create New Node > Node2D > Physics
Best Used For
- ▸Define collision boundaries for game objects
- ▸Detect overlaps for pickups, damage zones, and triggers
- ▸Simulate realistic forces and gravity responses
Intermediate⏱ 30–60 minutes to master
Key Settings
Add:Signals:Override physics:
Area2D detects when other physics bodies enter or exit its collision shape. It acts as a detection zone or trigger, and can override gravity and physics properties.
Where to Find It
Found under Node2D > Physics. Requires a CollisionShape2D child.
How to Use
- Add: Add Area2D with a CollisionShape2D child to define the zone.
- Signals: Connect body_entered, body_exited signals.
- Override physics: Enable Gravity Override for custom physics zones.
Pro Tips
- Use body_shape_entered for granular detection.
- Keep area shapes simple for performance.
- Use different collision layers for different detection needs.