class_concavepolygonshape.rst 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. _class_ConcavePolygonShape:
  2. ConcavePolygonShape
  3. ===================
  4. **Inherits:** :ref:`Shape<class_shape>`
  5. **Category:** Core
  6. Concave polygon shape.
  7. Member Functions
  8. ----------------
  9. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  10. | void | :ref:`set_faces<class_ConcavePolygonShape_set_faces>` **(** :ref:`Vector3Array<class_vector3array>` faces **)** |
  11. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  12. | :ref:`Vector3Array<class_vector3array>` | :ref:`get_faces<class_ConcavePolygonShape_get_faces>` **(** **)** const |
  13. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------+
  14. Description
  15. -----------
  16. 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.
  17. Member Function Description
  18. ---------------------------
  19. .. _class_ConcavePolygonShape_set_faces:
  20. - void **set_faces** **(** :ref:`Vector3Array<class_vector3array>` faces **)**
  21. Set the faces (an array of triangles).
  22. .. _class_ConcavePolygonShape_get_faces:
  23. - :ref:`Vector3Array<class_vector3array>` **get_faces** **(** **)** const
  24. Return the faces (an array of triangles).