NavigationObstacle2D

Inherits: Node < Object 2D obstacle used in navigation for collision avoidance.

Description

Navigation2D node, or using set_navigation. NavigationObstacle2D 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.

Properties

Methods

Property Descriptions

  • bool estimate_radius Enables radius estimation algorithm which uses parent’s collision shapes to determine the obstacle radius.

  • float radius estimate_radius is set to false.

    Method Descriptions

  • Node get_navigation ( ) const Navigation2D node that the obstacle is using for its navigation system.

  • RID get_rid ( ) const RID of this obstacle on the Navigation2DServer.

  • set_navigation ( Node navigation ) Navigation2D node used by the obstacle. Useful when you don’t want to make the obstacle a child of a Navigation2D node.