Node that represents collision shape data in 3D space.
    public class CollisionShape : Spatial

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. IMPORTANT: this is an Editor-only helper to create shapes, use CollisionObject.ShapeOwnerGetShape(int, int) to get the actual shape.

Inheritance Chain


    public CollisionShape()


    public bool Disabled { get; set; }

A disabled collision shape has no effect in the world.

    public Shape Shape { get; set; }

The actual shape owned by this collision shape.


    public Shape GetShape()

Getter for Shape

    public bool IsDisabled()

Getter for Disabled

    public void MakeConvexFromBrothers()

Sets the collision shape’s shape to the addition of all its convexed MeshInstance siblings geometry.

    public void ResourceChanged(Resource resource)

If this method exists within a script it will be called whenever the shape resource has been modified.

    public void SetDisabled(bool enable)

Setter for Disabled

    public void SetShape(Shape shape)

Setter for Shape