NavigationObstacle

    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 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.


    The radius of the agent. Used only if is set to false.

    • get_navigation ( ) const

    Returns the Navigation node that the obstacle is using for its navigation system.


    Returns the of this obstacle on the NavigationServer.


    • void set_navigation ( navigation )

    Sets the Navigation node used by the obstacle. Useful when you don’t want to make the obstacle a child of a node.