CollisionShape

Inherits: Spatial < Node < 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 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.shape_owner_get_shape to get the actual shape.

Properties

booldisabledfalse
ShapeShape 

Methods

voidmake_convex_from_brothers ( )
voidresource_changed ( Resource resource )

Property Descriptions

Defaultfalse
Setterset_disabled(value)
Getteris_disabled()

A disabled collision shape has no effect in the world.


Setterset_shape(value)
Getterget_shape()

The actual shape owned by this collision shape.

Method Descriptions

  • void make_convex_from_brothers ( )

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


  • void resource_changed ( Resource resource )

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

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.