3D obstacle used in navigation for collision avoidance.
3D 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 [Navigation] node, or using [method set_navigation]. [NavigationObstacle] is physics safe. Obstacles [b]don't[/b] change the resulting path from the pathfinding, they only affect the navigation agent movement in a radius. Therefore, using obstacles for the static walls in your level won't work because those walls don't exist in the pathfinding. The navigation agent will be pushed in a semi-random direction away while moving inside that radius. Obstacles are intended as a last resort option for constantly moving objects that cannot be (re)baked to a navigation mesh efficiently.
Returns the [Navigation] node that the obstacle is using for its navigation system.
Returns the [RID] of this obstacle on the [NavigationServer].
Sets the [Navigation] node used by the obstacle. Useful when you don't want to make the obstacle a child of a [Navigation] node.
- Enables radius estimation algorithm which uses parent's collision shapes to determine the obstacle radius.
- The radius of the agent. Used only if [member estimate_radius] is set to [code]false[/code].