diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-19 14:34:13 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-08-19 14:34:13 +0200 |
commit | 8b98d9aa4da63f54eb936da2af69cce25b51839d (patch) | |
tree | 5a4f4c9a041f81ad26ea4c40e532fbbb9bc335a8 /doc | |
parent | b1088047a0b6fa3c9b9130246f4d7abae75c9391 (diff) | |
parent | 2e1f6b50fb5bfe6782ce791d96d4d6d66074aef9 (diff) | |
download | redot-engine-8b98d9aa4da63f54eb936da2af69cce25b51839d.tar.gz |
Merge pull request #95137 from smix8/source_geo_bounds
Add `get_bounds()` function to NavigationMeshSourceGeometryData
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/NavigationMeshSourceGeometryData2D.xml | 6 | ||||
-rw-r--r-- | doc/classes/NavigationMeshSourceGeometryData3D.xml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/NavigationMeshSourceGeometryData2D.xml b/doc/classes/NavigationMeshSourceGeometryData2D.xml index 1d8689420b..82b6e077fe 100644 --- a/doc/classes/NavigationMeshSourceGeometryData2D.xml +++ b/doc/classes/NavigationMeshSourceGeometryData2D.xml @@ -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> diff --git a/doc/classes/NavigationMeshSourceGeometryData3D.xml b/doc/classes/NavigationMeshSourceGeometryData3D.xml index 0b3126a63b..aa43dff52d 100644 --- a/doc/classes/NavigationMeshSourceGeometryData3D.xml +++ b/doc/classes/NavigationMeshSourceGeometryData3D.xml @@ -63,6 +63,12 @@ Clears all projected obstructions. </description> </method> + <method name="get_bounds"> + <return type="AABB" /> + <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_indices" qualifiers="const"> <return type="PackedInt32Array" /> <description> |