Cross-reference AABB getter methods in the documentation

This also clarifies that `get_aabb()` returns the AABB in local space.

See https://github.com/godotengine/godot/issues/42095.
This commit is contained in:
Hugo Locurcio 2020-09-16 15:53:10 +02:00
parent 6f4384f206
commit 9712f8fd2d
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C
3 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@
<return type="AABB"> <return type="AABB">
</return> </return>
<description> <description>
Returns the smallest [AABB] enclosing this mesh. Not affected by [code]custom_aabb[/code]. Returns the smallest [AABB] enclosing this mesh in local space. Not affected by [code]custom_aabb[/code]. See also [method VisualInstance3D.get_transformed_aabb].
[b]Note:[/b] This is only implemented for [ArrayMesh] and [PrimitiveMesh]. [b]Note:[/b] This is only implemented for [ArrayMesh] and [PrimitiveMesh].
</description> </description>
</method> </method>

View File

@ -18,7 +18,7 @@
<return type="AABB"> <return type="AABB">
</return> </return>
<description> <description>
Returns the visibility axis-aligned bounding box. Returns the visibility axis-aligned bounding box in local space. See also [method VisualInstance3D.get_transformed_aabb].
</description> </description>
</method> </method>
<method name="get_instance_color" qualifiers="const"> <method name="get_instance_color" qualifiers="const">

View File

@ -13,7 +13,7 @@
<return type="AABB"> <return type="AABB">
</return> </return>
<description> <description>
Returns the [AABB] (also known as the bounding box) for this [VisualInstance3D]. Returns the [AABB] (also known as the bounding box) for this [VisualInstance3D]. See also [method get_transformed_aabb].
</description> </description>
</method> </method>
<method name="get_base" qualifiers="const"> <method name="get_base" qualifiers="const">
@ -44,7 +44,7 @@
</return> </return>
<description> <description>
Returns the transformed [AABB] (also known as the bounding box) for this [VisualInstance3D]. Returns the transformed [AABB] (also known as the bounding box) for this [VisualInstance3D].
Transformed in this case means the [AABB] plus the position, rotation, and scale of the [Node3D]'s [Transform]. Transformed in this case means the [AABB] plus the position, rotation, and scale of the [Node3D]'s [Transform]. See also [method get_aabb].
</description> </description>
</method> </method>
<method name="set_base"> <method name="set_base">