NavigationObstacle2D
2D obstacle used in navigation for collision avoidance.
2D obstacle used in navigation for collision avoidance. The obstacle needs navigation data to work correctly. This can be done by having the obstacle as a child of a node, or using set_navigation. is physics safe.
Note: Obstacles are intended as a last resort option for constantly moving objects that cannot be (re)baked to a navigation mesh efficiently.
- float radius
The radius of the agent. Used only if is set to false
.
- get_navigation ( ) const
Returns the Navigation2D node that the obstacle is using for its navigation system.
Returns the of this obstacle on the Navigation2DServer.
- void set_navigation ( navigation )
Sets the Navigation2D node used by the obstacle. Useful when you don’t want to make the obstacle a child of a node.