ConcavePolygonShape3D.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="ConcavePolygonShape3D" inherits="Shape3D" version="4.0">
  3. <brief_description>
  4. Concave polygon shape.
  5. </brief_description>
  6. <description>
  7. Concave polygon shape resource, which can be set into a [PhysicsBody3D] or area. This shape is created by feeding a list of triangles.
  8. [b]Note:[/b] When used for collision, [ConcavePolygonShape3D] is intended to work with static [PhysicsBody3D] nodes like [StaticBody3D] and will not work with [CharacterBody3D] or [RigidDynamicBody3D] 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="PackedVector3Array" />
  16. <description>
  17. Returns the faces (an array of triangles).
  18. </description>
  19. </method>
  20. <method name="set_faces">
  21. <return type="void" />
  22. <argument index="0" name="faces" type="PackedVector3Array" />
  23. <description>
  24. Sets the faces (an array of triangles).
  25. </description>
  26. </method>
  27. </methods>
  28. <members>
  29. <member name="backface_collision" type="bool" setter="set_backface_collision_enabled" getter="is_backface_collision_enabled" default="false">
  30. If set to [code]true[/code], collisions occur on both sides of the concave shape faces. Otherwise they occur only along the face normals.
  31. </member>
  32. </members>
  33. </class>