ConcavePolygonShape.xml 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ConcavePolygonShape" inherits="Shape" version="3.4">
  3. <brief_description>
  4. Concave polygon shape.
  5. </brief_description>
  6. <description>
  7. Concave polygon shape resource, which can be set into a [PhysicsBody] or area. This shape is created by feeding a list of triangles.
  8. Note: when used for collision, [ConcavePolygonShape] is intended to work with static [PhysicsBody] nodes like [StaticBody] and will not work with [KinematicBody] or [RigidBody] with a mode other than Static.
  9. </description>
  10. <tutorials>
  11. <link title="3D Physics Tests Demo">https://godotengine.org/asset-library/asset/675</link>
  12. </tutorials>
  13. <methods>
  14. <method name="get_faces" qualifiers="const">
  15. <return type="PoolVector3Array">
  16. </return>
  17. <description>
  18. Returns the faces (an array of triangles).
  19. </description>
  20. </method>
  21. <method name="set_faces">
  22. <return type="void">
  23. </return>
  24. <argument index="0" name="faces" type="PoolVector3Array">
  25. </argument>
  26. <description>
  27. Sets the faces (an array of triangles).
  28. </description>
  29. </method>
  30. </methods>
  31. <constants>
  32. </constants>
  33. </class>