123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- :github_url: hide
- .. Generated automatically by doc/tools/make_rst.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>`
- Concave polygon shape.
- 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.
- **Note:** When used for collision, ``ConcavePolygonShape`` is intended to work with static :ref:`PhysicsBody<class_PhysicsBody>` nodes like :ref:`StaticBody<class_StaticBody>` and will not work with :ref:`KinematicBody<class_KinematicBody>` or :ref:`RigidBody<class_RigidBody>` with a mode other than Static.
- Tutorials
- ---------
- - `3D Physics Tests Demo <https://godotengine.org/asset-library/asset/675>`__
- 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 **)** |
- +-------------------------------------------------+--------------------------------------------------------------------------------------------------------------------------------+
- Method Descriptions
- -------------------
- .. _class_ConcavePolygonShape_method_get_faces:
- - :ref:`PoolVector3Array<class_PoolVector3Array>` **get_faces** **(** **)** |const|
- Returns the faces (an array of triangles).
- ----
- .. _class_ConcavePolygonShape_method_set_faces:
- - void **set_faces** **(** :ref:`PoolVector3Array<class_PoolVector3Array>` faces **)**
- Sets the faces (an array of triangles).
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
|