Skip to content

Components

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

FieldScript nameKindDefaultWhat it does
Radiusradiusnumber, at least 032How far it reaches, in world units.
EnabledenabledcheckboxonWhether it is blocking right now.