reckfellENGINE

CollisionShape3D

Attaches a shape resource to a 3D body or area.

On this page
class CollisionShape3DReckfellSharpInherits Entity3D

CollisionShape3D must be a direct child of a suitable CollisionObject. Shape is shared: resizing a common resource affects every instance using it. Assign a Duplicate before editing independent geometry.

Change resource dimensions with unit scale in the physics branch, including inherited scale checks. Disabled removes the shape from physics participation after application. Use SetDeferred inside a physics signal rather than immediate restructuring. Hiding the visible model does not disable collision.

Guide and example.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

CollisionShape3DConstructor
# CollisionShape3D
C#
public CollisionShape3D();

Properties4

DebugColorProperty
# DebugColor
C#
public Color DebugColor { get; set; }

The collision shape color that is displayed in the editor, or in the running project if Debug > Visible Collision Shapes is checked at the top of the editor. Note: The default value is ProjectSettings.debug/shapes/collision/shape_color. The Color(0, 0, 0, 0) value documented here is a placeholder, and not the actual default debug color.

DebugFillProperty
# DebugFill
C#
public bool DebugFill { get; set; }

If true, when the shape is displayed, it will show a solid fill color in addition to its wireframe.

DisabledProperty
# Disabled
C#
public bool Disabled { get; set; }

Excludes the shape from physics participation after application. Use SetDeferred from a physics callback; hiding artwork does not substitute for this flag.

ShapeProperty
# Shape
C#
public Shape3D Shape { get; set; }

A geometry resource that can be shared across instances. Resizing affects all users; assign a Duplicate first for an independent collider.

Methods10

GetDebugColorColor
# GetDebugColor
C#
public Color GetDebugColor();
Returns Color
GetEnableDebugFillbool
# GetEnableDebugFill
C#
public bool GetEnableDebugFill();
Returns bool
GetShapeShape3D
# GetShape
C#
public Shape3D GetShape();
Returns Shape3D
IsDisabledbool
# IsDisabled
C#
public bool IsDisabled();
Returns bool
MakeConvexFromSiblingsvoid
# MakeConvexFromSiblings
C#
public void MakeConvexFromSiblings();

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

ResourceChangedvoid · Deprecated
# ResourceChanged
C#
public void ResourceChanged(Resource resource);

This method does nothing.

Parameters
NameTypeDefault
resourceResource—
SetDebugColorvoid
# SetDebugColor
C#
public void SetDebugColor(Color color);
Parameters
NameTypeDefault
colorColor—
SetDisabledvoid
# SetDisabled
C#
public void SetDisabled(bool enable);
Parameters
NameTypeDefault
enablebool—
SetEnableDebugFillvoid
# SetEnableDebugFill
C#
public void SetEnableDebugFill(bool enable);
Parameters
NameTypeDefault
enablebool—
SetShapevoid
# SetShape
C#
public void SetShape(Shape3D shape);
Parameters
NameTypeDefault
shapeShape3D—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.