瀏覽代碼

Merge pull request #42114 from Calinou/doc-mesh-aabb-methods

Cross-reference AABB getter methods in the documentation
Rémi Verschelde 5 年之前
父節點
當前提交
1777211271
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 1 1
      doc/classes/Mesh.xml
  2. 1 1
      doc/classes/MultiMesh.xml
  3. 2 2
      doc/classes/VisualInstance3D.xml

+ 1 - 1
doc/classes/Mesh.xml

@@ -44,7 +44,7 @@
 			<return type="AABB">
 			</return>
 			<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].
 			</description>
 		</method>

+ 1 - 1
doc/classes/MultiMesh.xml

@@ -18,7 +18,7 @@
 			<return type="AABB">
 			</return>
 			<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>
 		</method>
 		<method name="get_instance_color" qualifiers="const">

+ 2 - 2
doc/classes/VisualInstance3D.xml

@@ -13,7 +13,7 @@
 			<return type="AABB">
 			</return>
 			<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>
 		</method>
 		<method name="get_base" qualifiers="const">
@@ -44,7 +44,7 @@
 			</return>
 			<description>
 				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>
 		</method>
 		<method name="set_base">