Add bounds function to NavigationMeshSourceGeometryData
Adds get_bounds() function to NavigationMeshSourceGeometryData2D/3D to get a bounding box that covers all the geometry.
This commit is contained in:
@@ -57,6 +57,12 @@
|
||||
Clears all projected obstructions.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_bounds">
|
||||
<return type="Rect2" />
|
||||
<description>
|
||||
Returns an axis-aligned bounding box that covers all the stored geometry data. The bounds are calculated when calling this function with the result cached until further geometry changes are made.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_obstruction_outlines" qualifiers="const">
|
||||
<return type="PackedVector2Array[]" />
|
||||
<description>
|
||||
|
||||
Reference in New Issue
Block a user