class_concavepolygonshape.rst 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. Note: when used for collision, ``ConcavePolygonShape`` is intended to work with static :ref:`PhysicsBody<class_PhysicsBody>` nodes like :ref:`StaticBody<class_StaticBody>` and will not work with :ref:`KinematicBody<class_KinematicBody>` or :ref:`RigidBody<class_RigidBody>` with a mode other than Static.
  14. Methods
  15. -------
  16. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  17. | :ref:`PackedVector3Array<class_PackedVector3Array>` | :ref:`get_faces<class_ConcavePolygonShape_method_get_faces>` **(** **)** const |
  18. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_faces<class_ConcavePolygonShape_method_set_faces>` **(** :ref:`PackedVector3Array<class_PackedVector3Array>` faces **)** |
  20. +-----------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------+
  21. Method Descriptions
  22. -------------------
  23. .. _class_ConcavePolygonShape_method_get_faces:
  24. - :ref:`PackedVector3Array<class_PackedVector3Array>` **get_faces** **(** **)** const
  25. Returns the faces (an array of triangles).
  26. ----
  27. .. _class_ConcavePolygonShape_method_set_faces:
  28. - void **set_faces** **(** :ref:`PackedVector3Array<class_PackedVector3Array>` faces **)**
  29. Sets the faces (an array of triangles).