class_concavepolygonshape.rst 1.9 KB

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