summaryrefslogtreecommitdiff
path: root/doc/base/classes.xml
diff options
context:
space:
mode:
authorOliver Dressler <odressler@gmail.com>2017-09-09 16:48:27 +0200
committerOliver Dressler <odressler@gmail.com>2017-09-12 09:58:42 +0200
commit8aa778cee5701442db204ae9341092f3de49bc2a (patch)
tree1aa664237ebd04af489099deae166fdfcdd333ae /doc/base/classes.xml
parentd1cb73b47a17de830d9474026ffa7b3587cfbc68 (diff)
Added Mesh docs
Diffstat (limited to 'doc/base/classes.xml')
-rw-r--r--doc/base/classes.xml15
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml
index a097470306..b8ddb9efe1 100644
--- a/doc/base/classes.xml
+++ b/doc/base/classes.xml
@@ -27373,6 +27373,7 @@
<return type="Shape">
</return>
<description>
+ Calculate a [ConvexPolygonShape] from the mesh.
</description>
</method>
<method name="create_outline" qualifiers="const">
@@ -27381,24 +27382,28 @@
<argument index="0" name="margin" type="float">
</argument>
<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>
</method>
<method name="create_trimesh_shape" qualifiers="const">
<return type="Shape">
</return>
<description>
+ Calculate a [ConcavePolygonShape] from the mesh.
</description>
</method>
<method name="generate_triangle_mesh" qualifiers="const">
<return type="TriangleMesh">
</return>
<description>
+ Generate a [TriangleMesh] from the mesh.
</description>
</method>
<method name="get_faces" qualifiers="const">
<return type="PoolVector3Array">
</return>
<description>
+ Returns all the vertices that make up the faces of the mesh. Each three vertices represent one triangle.
</description>
</method>
</methods>
@@ -27770,6 +27775,7 @@
<return type="void">
</return>
<description>
+ This helper creates a [StaticBody] child [Node] with a [ConvexPolygonShape] [CollisionShape] calculated from the mesh geometry. It's mainly used for testing.
</description>
</method>
<method name="create_debug_tangents">
@@ -27782,14 +27788,14 @@
<return type="void">
</return>
<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>
</method>
<method name="get_mesh" qualifiers="const">
<return type="Mesh">
</return>
<description>
- Return the current [Mesh] resource for the instance.
+ Returns the current [Mesh] resource for the instance.
</description>
</method>
<method name="get_skeleton_path">
@@ -27804,6 +27810,7 @@
<argument index="0" name="surface" type="int">
</argument>
<description>
+ Returns the [Material] for a surface of the [Mesh] resource.
</description>
</method>
<method name="set_mesh">
@@ -27812,7 +27819,6 @@
<argument index="0" name="mesh" type="Mesh">
</argument>
<description>
- Set the [Mesh] resource for the instance.
</description>
</method>
<method name="set_skeleton_path">
@@ -27831,13 +27837,16 @@
<argument index="1" name="material" type="Material">
</argument>
<description>
+ Sets the [Material] for a surface of the [Mesh] resource.
</description>
</method>
</methods>
<members>
<member name="mesh" type="Mesh" setter="set_mesh" getter="get_mesh" brief="">
+ The [Mesh] resource for the instance.
</member>
<member name="skeleton" type="NodePath" setter="set_skeleton_path" getter="get_skeleton_path" brief="">
+ [NodePath] to the [Skeleton] associated with the instance.
</member>
</members>
<constants>