class_concavepolygonshape.rst 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. Member Functions
  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. Member Function Description
  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).