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 Navigation2D node, or using set_navigation. NavigationObstacle is physics safe.
- Node get_navigation ( ) const
Returns the Navigation2D node that the obstacle is using for its navigation system.
- void set_navigation ( Node navigation )