reckfellENGINE

SeparationRayShape3D

A 3D ray shape used for physics collision that tries to separate itself from any collider.

On this page
class SeparationRayShape3DReckfellSharpInherits Shape3D

A 3D ray shape used for physics collision that tries to separate itself from any collider.

A 3D ray shape, intended for use in physics. Usually used to provide a shape for a CollisionShape3D. When a SeparationRayShape3D collides with an object, it tries to separate itself from it by moving its endpoint to the collision point. For example, a SeparationRayShape3D next to a character can allow it to instantly move up when touching stairs.

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

Constructors1

SeparationRayShape3DConstructor
# SeparationRayShape3D
C#
public SeparationRayShape3D();

Properties2

LengthProperty
# Length
C#
public float Length { get; set; }

The ray's length.

SlideOnSlopeProperty
# SlideOnSlope
C#
public bool SlideOnSlope { get; set; }

If false (default), the shape always separates and returns a normal along its own direction. If true, the shape can return the correct normal and separate in any direction, allowing sliding motion on slopes.

Methods4

GetLengthfloat
# GetLength
C#
public float GetLength();
Returns float
GetSlideOnSlopebool
# GetSlideOnSlope
C#
public bool GetSlideOnSlope();
Returns bool
SetLengthvoid
# SetLength
C#
public void SetLength(float length);
Parameters
NameTypeDefault
lengthfloat—
SetSlideOnSlopevoid
# SetSlideOnSlope
C#
public void SetSlideOnSlope(bool active);
Parameters
NameTypeDefault
activebool—
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.