NavObstacle
A circle that blocks a route without blocking movement: a coolant pool an enemy will not walk into, the space around a hazard, a door still closing. Distinct from a Collider, which stops movement outright.
On this page
Add it
+ Add node → Nav Obstacle creates a node with it already on. Already have a node for it? Add component → NavObstacleComponent.
From a script
A script on the same node writes these fields by name. NavObstacleComponent is the name to pass.
rgs
set_number("NavObstacleComponent", "radius", 32.0);
set_flag("NavObstacleComponent", "enabled", true); Fields
| Field | Script name | Kind | Default | What it does |
|---|---|---|---|---|
| Radius | radius | number, at least 0 | 32 | How far it reaches, in world units. |
| Enabled | enabled | checkbox | on | Whether it is blocking right now. |