class_concavepolygonshape.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ConcavePolygonShape.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ConcavePolygonShape:
  5. ConcavePolygonShape
  6. ===================
  7. **Inherits:** :ref:`Shape<class_Shape>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Concave polygon shape.
  12. Methods
  13. -------
  14. +--------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+
  15. | :ref:`PoolVector3Array<class_PoolVector3Array>` | :ref:`get_faces<class_ConcavePolygonShape_get_faces>` **(** **)** const |
  16. +--------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`set_faces<class_ConcavePolygonShape_set_faces>` **(** :ref:`PoolVector3Array<class_PoolVector3Array>` faces **)** |
  18. +--------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+
  19. Description
  20. -----------
  21. 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.
  22. Method Descriptions
  23. -------------------
  24. .. _class_ConcavePolygonShape_get_faces:
  25. - :ref:`PoolVector3Array<class_PoolVector3Array>` **get_faces** **(** **)** const
  26. Return the faces (an array of triangles).
  27. .. _class_ConcavePolygonShape_set_faces:
  28. - void **set_faces** **(** :ref:`PoolVector3Array<class_PoolVector3Array>` faces **)**
  29. Set the faces (an array of triangles).