CollisionShape.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CollisionShape" inherits="Spatial" version="3.4">
  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 title="Physics introduction">https://docs.godotengine.org/en/3.3/tutorials/physics/physics_introduction.html</link>
  11. <link title="3D Kinematic Character Demo">https://godotengine.org/asset-library/asset/126</link>
  12. <link title="3D Platformer Demo">https://godotengine.org/asset-library/asset/125</link>
  13. <link title="Third Person Shooter Demo">https://godotengine.org/asset-library/asset/678</link>
  14. </tutorials>
  15. <methods>
  16. <method name="make_convex_from_brothers">
  17. <return type="void">
  18. </return>
  19. <description>
  20. Sets the collision shape's shape to the addition of all its convexed [MeshInstance] siblings geometry.
  21. </description>
  22. </method>
  23. <method name="resource_changed">
  24. <return type="void">
  25. </return>
  26. <argument index="0" name="resource" type="Resource">
  27. </argument>
  28. <description>
  29. If this method exists within a script it will be called whenever the shape resource has been modified.
  30. </description>
  31. </method>
  32. </methods>
  33. <members>
  34. <member name="disabled" type="bool" setter="set_disabled" getter="is_disabled" default="false">
  35. A disabled collision shape has no effect in the world.
  36. </member>
  37. <member name="shape" type="Shape" setter="set_shape" getter="get_shape">
  38. The actual shape owned by this collision shape.
  39. </member>
  40. </members>
  41. <constants>
  42. </constants>
  43. </class>