CollisionShape

Node that represents collision shape data in 3D space.

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 to get the actual shape.

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Functions

getShape
Ref!Shape getShape()
isDisabled
bool isDisabled()
makeConvexFromBrothers
void makeConvexFromBrothers()

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

opAssign
typeof(null) opAssign(typeof(null) n)
opEquals
bool opEquals(CollisionShape other)
opEquals
bool opEquals(typeof(null) n)
resourceChanged
void resourceChanged(Resource resource)

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

setDisabled
void setDisabled(bool enable)
setShape
void setShape(Shape shape)
toHash
size_t toHash()

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

disabled
bool disabled [@property getter]
bool disabled [@property setter]

A disabled collision shape has no effect in the world.

shape
Shape shape [@property getter]
Shape shape [@property setter]

The actual shape owned by this collision shape.

Static functions

_new
CollisionShape _new()

Construct a new instance of CollisionShape. Note: use memnew!CollisionShape instead.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

GDNativeClassBinding
struct GDNativeClassBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(To) as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
inout(ToRef) as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta