CollisionShape3D.xml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CollisionShape3D" inherits="Node3D" version="4.0">
  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 [Area3D] to give it a detection shape, or add it to a [PhysicsBody3D] to create a solid object. [b]IMPORTANT[/b]: this is an Editor-only helper to create shapes, use [method CollisionObject3D.shape_owner_get_shape] to get the actual shape.
  8. </description>
  9. <tutorials>
  10. <link title="Physics introduction">https://docs.godotengine.org/en/latest/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_siblings">
  17. <return type="void" />
  18. <description>
  19. Sets the collision shape's shape to the addition of all its convexed [MeshInstance3D] siblings geometry.
  20. </description>
  21. </method>
  22. <method name="resource_changed">
  23. <return type="void" />
  24. <argument index="0" name="resource" type="Resource" />
  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" default="false">
  32. A disabled collision shape has no effect in the world.
  33. </member>
  34. <member name="shape" type="Shape3D" setter="set_shape" getter="get_shape">
  35. The actual shape owned by this collision shape.
  36. </member>
  37. </members>
  38. </class>