CollisionShape.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CollisionShape" inherits="Spatial" category="Core" version="3.1">
  3. <brief_description>
  4. Node that represents collision shape data in 3D space.
  5. </brief_description>
  6. <description>
  7. Editor facility for creating and editing collision shapes in 3D space. You can use this node to represent all sorts of collision shapes, for example, add this to an [Area] to give it a detection shape, or add it to a [PhysicsBody] to create a solid object. [b]IMPORTANT[/b]: this is an Editor-only helper to create shapes, use [method CollisionObject.shape_owner_get_shape] to get the actual shape.
  8. </description>
  9. <tutorials>
  10. <link>https://docs.godotengine.org/en/latest/tutorials/physics/physics_introduction.html</link>
  11. </tutorials>
  12. <demos>
  13. </demos>
  14. <methods>
  15. <method name="make_convex_from_brothers">
  16. <return type="void">
  17. </return>
  18. <description>
  19. Sets the collision shape's shape to the addition of all its convexed [MeshInstance] siblings geometry.
  20. </description>
  21. </method>
  22. <method name="resource_changed">
  23. <return type="void">
  24. </return>
  25. <argument index="0" name="resource" type="Resource">
  26. </argument>
  27. <description>
  28. If this method exists within a script it will be called whenever the shape resource has been modified.
  29. </description>
  30. </method>
  31. </methods>
  32. <members>
  33. <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled">
  34. A disabled collision shape has no effect in the world.
  35. </member>
  36. <member name="shape" type="Shape" setter="set_shape" getter="get_shape">
  37. The actual shape owned by this collision shape.
  38. </member>
  39. </members>
  40. <constants>
  41. </constants>
  42. </class>