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 set_navigation. NavigationObstacle 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.
get_navigation ( ) const
get_rid ( ) const
bool estimate_radius =
Enables radius estimation algorithm which uses parent's collision shapes to determine the obstacle radius.
float radius =
The radius of the agent. Used only if estimate_radius is set to
Node get_navigation ( ) const
Returns the Navigation node that the obstacle is using for its navigation system.
RID get_rid ( ) const
void set_navigation ( Node navigation )