ConcavePolygonShape.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ConcavePolygonShape" inherits="Shape" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  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. [b]Note:[/b] 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. [b]Warning:[/b] Using this shape for an [Area] (via a [CollisionShape] node, created e.g. by using the [i]Create Trimesh Collision Sibling[/i] option in the [i]Mesh[/i] menu that appears when selecting a [MeshInstance] node) may give unexpected results: when using Godot Physics, the area will only detect collisions with the triangle faces in the [ConcavePolygonShape] (and not with any "inside" of the shape, for example), and when using Bullet Physics the area will not detect any collisions with the concave shape at all (this is a known bug).
  10. </description>
  11. <tutorials>
  12. <link title="3D Physics Tests Demo">https://godotengine.org/asset-library/asset/675</link>
  13. </tutorials>
  14. <methods>
  15. <method name="get_faces" qualifiers="const">
  16. <return type="PoolVector3Array" />
  17. <description>
  18. Returns the faces (an array of triangles).
  19. </description>
  20. </method>
  21. <method name="set_faces">
  22. <return type="void" />
  23. <argument index="0" name="faces" type="PoolVector3Array" />
  24. <description>
  25. Sets the faces (an array of triangles).
  26. </description>
  27. </method>
  28. </methods>
  29. <constants>
  30. </constants>
  31. </class>