NavigationObstacle2D¶
2D Obstacle used in navigation for collision avoidance.
Description¶
2D Obstacle used in navigation for collision avoidance. The obstacle needs navigation data to work correctly. 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¶
get_rid ( ) const |
Property Descriptions¶
bool estimate_radius
Default |
|
Setter |
set_estimate_radius(value) |
Getter |
is_radius_estimated() |
Enables radius estimation algorithm which uses parent's collision shapes to determine the obstacle radius.
float radius
Default |
|
Setter |
set_radius(value) |
Getter |
get_radius() |
The radius of the agent. Used only if estimate_radius is set to false.
Method Descriptions¶
RID get_rid ( ) const
Returns the RID of this obstacle on the NavigationServer2D.