Files
godot-docs/classes/class_concavepolygonshape.rst
2019-01-07 10:14:12 +01:00

48 lines
2.0 KiB
ReStructuredText

.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
.. DO NOT EDIT THIS FILE, but the ConcavePolygonShape.xml source instead.
.. The source is found in doc/classes or modules/<name>/doc_classes.
.. _class_ConcavePolygonShape:
ConcavePolygonShape
===================
**Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
**Category:** Core
Brief Description
-----------------
Concave polygon shape.
Methods
-------
+-------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
| :ref:`PoolVector3Array<class_PoolVector3Array>` | :ref:`get_faces<class_ConcavePolygonShape_method_get_faces>` **(** **)** const |
+-------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
| void | :ref:`set_faces<class_ConcavePolygonShape_method_set_faces>` **(** :ref:`PoolVector3Array<class_PoolVector3Array>` faces **)** |
+-------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
Description
-----------
Concave polygon shape resource, which can be set into a :ref:`PhysicsBody<class_PhysicsBody>` or area. This shape is created by feeding a list of triangles.
Method Descriptions
-------------------
.. _class_ConcavePolygonShape_method_get_faces:
- :ref:`PoolVector3Array<class_PoolVector3Array>` **get_faces** **(** **)** const
Return the faces (an array of triangles).
.. _class_ConcavePolygonShape_method_set_faces:
- void **set_faces** **(** :ref:`PoolVector3Array<class_PoolVector3Array>` faces **)**
Set the faces (an array of triangles).