CollisionShape.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CollisionShape" inherits="Spatial" category="Core" version="3.1.2">
  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/3.1/tutorials/physics/physics_introduction.html</link>
  11. </tutorials>
  12. <methods>
  13. <method name="make_convex_from_brothers">
  14. <return type="void">
  15. </return>
  16. <description>
  17. Sets the collision shape's shape to the addition of all its convexed [MeshInstance] siblings geometry.
  18. </description>
  19. </method>
  20. <method name="resource_changed">
  21. <return type="void">
  22. </return>
  23. <argument index="0" name="resource" type="Resource">
  24. </argument>
  25. <description>
  26. If this method exists within a script it will be called whenever the shape resource has been modified.
  27. </description>
  28. </method>
  29. </methods>
  30. <members>
  31. <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled">
  32. A disabled collision shape has no effect in the world.
  33. </member>
  34. <member name="shape" type="Shape" setter="set_shape" getter="get_shape">
  35. The actual shape owned by this collision shape.
  36. </member>
  37. </members>
  38. <constants>
  39. </constants>
  40. </class>