mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Add functions to get axis-aligned bounds of navigation regions
Adds functions to get the navigation mesh Rect2 of a NavigationRegion2D or AABB of a NavigationRegion3D.
This commit is contained in:
@@ -784,6 +784,13 @@
|
||||
Creates a new region.
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_get_bounds" qualifiers="const">
|
||||
<return type="Rect2" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
<description>
|
||||
Returns the axis-aligned rectangle for the [param region]'s transformed navigation mesh.
|
||||
</description>
|
||||
</method>
|
||||
<method name="region_get_closest_point" qualifiers="const">
|
||||
<return type="Vector2" />
|
||||
<param index="0" name="region" type="RID" />
|
||||
|
||||
Reference in New Issue
Block a user