:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CollisionShape3D.xml. .. _class_CollisionShape3D: CollisionShape3D ================ **Inherits:** :ref:`Node3D` **<** :ref:`Node` **<** :ref:`Object` Node that represents collision shape data in 3D space. Description ----------- 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 :ref:`Area3D` to give it a detection shape, or add it to a :ref:`PhysicsBody3D` to create a solid object. **IMPORTANT**: this is an Editor-only helper to create shapes, use :ref:`CollisionObject3D.shape_owner_get_shape` to get the actual shape. Tutorials --------- - :doc:`Physics introduction <../tutorials/physics/physics_introduction>` - `3D Kinematic Character Demo `__ - `3D Platformer Demo `__ - `Third Person Shooter Demo `__ Properties ---------- +-------------------------------+-----------------------------------------------------------+-----------+ | :ref:`bool` | :ref:`disabled` | ``false`` | +-------------------------------+-----------------------------------------------------------+-----------+ | :ref:`Shape3D` | :ref:`shape` | | +-------------------------------+-----------------------------------------------------------+-----------+ Methods ------- +------+------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`make_convex_from_siblings` **(** **)** | +------+------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`resource_changed` **(** :ref:`Resource` resource **)** | +------+------------------------------------------------------------------------------------------------------------------------------+ Property Descriptions --------------------- .. _class_CollisionShape3D_property_disabled: - :ref:`bool` **disabled** +-----------+---------------------+ | *Default* | ``false`` | +-----------+---------------------+ | *Setter* | set_disabled(value) | +-----------+---------------------+ | *Getter* | is_disabled() | +-----------+---------------------+ A disabled collision shape has no effect in the world. ---- .. _class_CollisionShape3D_property_shape: - :ref:`Shape3D` **shape** +----------+------------------+ | *Setter* | set_shape(value) | +----------+------------------+ | *Getter* | get_shape() | +----------+------------------+ The actual shape owned by this collision shape. Method Descriptions ------------------- .. _class_CollisionShape3D_method_make_convex_from_siblings: - void **make_convex_from_siblings** **(** **)** Sets the collision shape's shape to the addition of all its convexed :ref:`MeshInstance3D` siblings geometry. ---- .. _class_CollisionShape3D_method_resource_changed: - void **resource_changed** **(** :ref:`Resource` resource **)** If this method exists within a script it will be called whenever the shape resource has been modified. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`