SeparationRayShape3D
A 3D ray shape used for physics collision that tries to separate itself from any collider.
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
public SeparationRayShape3D();Properties2
LengthProperty
public float Length { get; set; }The ray's length.
SlideOnSlopeProperty
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
public float GetLength();floatGetSlideOnSlopebool
public bool GetSlideOnSlope();boolSetLengthvoid
public void SetLength(float length);| Name | Type | Default |
|---|---|---|
length | float | — |
SetSlideOnSlopevoid
public void SetSlideOnSlope(bool active);| Name | Type | Default |
|---|---|---|
active | bool | — |