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:
smix8
2025-01-11 02:16:53 +01:00
parent d79ff848fa
commit a7520fca6a
18 changed files with 119 additions and 0 deletions

View File

@@ -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" />