class_concavepolygonshape.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_ConcavePolygonShape:
  4. ConcavePolygonShape
  5. ===================
  6. **Inherits:** :ref:`Shape<class_shape>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Concave polygon shape.
  11. Member Functions
  12. ----------------
  13. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`Vector3Array<class_vector3array>` | :ref:`get_faces<class_ConcavePolygonShape_get_faces>` **(** **)** const |
  15. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  16. | void | :ref:`set_faces<class_ConcavePolygonShape_set_faces>` **(** :ref:`Vector3Array<class_vector3array>` faces **)** |
  17. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  18. Description
  19. -----------
  20. 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.
  21. Member Function Description
  22. ---------------------------
  23. .. _class_ConcavePolygonShape_get_faces:
  24. - :ref:`Vector3Array<class_vector3array>` **get_faces** **(** **)** const
  25. Return the faces (an array of triangles).
  26. .. _class_ConcavePolygonShape_set_faces:
  27. - void **set_faces** **(** :ref:`Vector3Array<class_vector3array>` faces **)**
  28. Set the faces (an array of triangles).