Ray shape for 2D collisions.
    public class RayShape2D : Shape2D

Ray shape for 2D collisions. A ray is not really a collision body; instead, it tries to separate itself from whatever is touching its far endpoint. It’s often useful for characters.

Inheritance Chain

Constructors

    public RayShape2D()

Properties

    public float Length { get; set; }

The ray’s length.

    public bool SlipsOnSlope { get; set; }

If true, allow the shape to return the correct normal.

Methods

    [Obsolete("GetLength is deprecated. Use the Length property instead.")]
    public float GetLength()

Getter for Length

    [Obsolete("GetSlipsOnSlope is deprecated. Use the SlipsOnSlope property instead.")]
    public bool GetSlipsOnSlope()

Getter for SlipsOnSlope

    [Obsolete("SetLength is deprecated. Use the Length property instead.")]
    public void SetLength(float length)

Setter for Length

    [Obsolete("SetSlipsOnSlope is deprecated. Use the SlipsOnSlope property instead.")]
    public void SetSlipsOnSlope(bool active)

Setter for SlipsOnSlope

Tags: