Explorar o código

Added Mesh docs

Oliver Dressler %!s(int64=8) %!d(string=hai) anos
pai
achega
8aa778cee5
Modificáronse 1 ficheiros con 12 adicións e 3 borrados
  1. 12 3
      doc/base/classes.xml

+ 12 - 3
doc/base/classes.xml

@@ -27373,6 +27373,7 @@
 			<return type="Shape">
 			<return type="Shape">
 			</return>
 			</return>
 			<description>
 			<description>
+				Calculate a [ConvexPolygonShape] from the mesh.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="create_outline" qualifiers="const">
 		<method name="create_outline" qualifiers="const">
@@ -27381,24 +27382,28 @@
 			<argument index="0" name="margin" type="float">
 			<argument index="0" name="margin" type="float">
 			</argument>
 			</argument>
 			<description>
 			<description>
+				Calculate an outline mesh at a defined offset (margin) from the original mesh. Note: Typically returns the vertices in reverse order (e.g. clockwise to anti-clockwise).
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="create_trimesh_shape" qualifiers="const">
 		<method name="create_trimesh_shape" qualifiers="const">
 			<return type="Shape">
 			<return type="Shape">
 			</return>
 			</return>
 			<description>
 			<description>
+				Calculate a [ConcavePolygonShape] from the mesh.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="generate_triangle_mesh" qualifiers="const">
 		<method name="generate_triangle_mesh" qualifiers="const">
 			<return type="TriangleMesh">
 			<return type="TriangleMesh">
 			</return>
 			</return>
 			<description>
 			<description>
+				Generate a [TriangleMesh] from the mesh.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_faces" qualifiers="const">
 		<method name="get_faces" qualifiers="const">
 			<return type="PoolVector3Array">
 			<return type="PoolVector3Array">
 			</return>
 			</return>
 			<description>
 			<description>
+				Returns all the vertices that make up the faces of the mesh. Each three vertices represent one triangle.
 			</description>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>
@@ -27770,6 +27775,7 @@
 			<return type="void">
 			<return type="void">
 			</return>
 			</return>
 			<description>
 			<description>
+				This helper creates a [StaticBody] child [Node] with a [ConvexPolygonShape] [CollisionShape] calculated from the mesh geometry. It's mainly used for testing.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="create_debug_tangents">
 		<method name="create_debug_tangents">
@@ -27782,14 +27788,14 @@
 			<return type="void">
 			<return type="void">
 			</return>
 			</return>
 			<description>
 			<description>
-				This helper creates a [StaticBody] child [Node] using the mesh geometry as collision. It's mainly used for testing.
+				This helper creates a [StaticBody] child [Node] with a [ConcavePolygonShape] [CollisionShape] calculated from the mesh geometry. It's mainly used for testing.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_mesh" qualifiers="const">
 		<method name="get_mesh" qualifiers="const">
 			<return type="Mesh">
 			<return type="Mesh">
 			</return>
 			</return>
 			<description>
 			<description>
-				Return the current [Mesh] resource for the instance.
+				Returns the current [Mesh] resource for the instance.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="get_skeleton_path">
 		<method name="get_skeleton_path">
@@ -27804,6 +27810,7 @@
 			<argument index="0" name="surface" type="int">
 			<argument index="0" name="surface" type="int">
 			</argument>
 			</argument>
 			<description>
 			<description>
+				Returns the [Material] for a surface of the [Mesh] resource.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set_mesh">
 		<method name="set_mesh">
@@ -27812,7 +27819,6 @@
 			<argument index="0" name="mesh" type="Mesh">
 			<argument index="0" name="mesh" type="Mesh">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				Set the [Mesh] resource for the instance.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="set_skeleton_path">
 		<method name="set_skeleton_path">
@@ -27831,13 +27837,16 @@
 			<argument index="1" name="material" type="Material">
 			<argument index="1" name="material" type="Material">
 			</argument>
 			</argument>
 			<description>
 			<description>
+				Sets the [Material] for a surface of the [Mesh] resource.
 			</description>
 			</description>
 		</method>
 		</method>
 	</methods>
 	</methods>
 	<members>
 	<members>
 		<member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh" brief="">
 		<member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh" brief="">
+			The [Mesh] resource for the instance.
 		</member>
 		</member>
 		<member name="skeleton" type="NodePath" setter="set_skeleton_path" getter="get_skeleton_path" brief="">
 		<member name="skeleton" type="NodePath" setter="set_skeleton_path" getter="get_skeleton_path" brief="">
+			[NodePath] to the [Skeleton] associated with the instance.
 		</member>
 		</member>
 	</members>
 	</members>
 	<constants>
 	<constants>