Line shape for 2D collisions.
    public class LineShape2D : Shape2D

Line shape for 2D collisions. It works like a 2D plane and will not allow any physics body to go to the negative side. Not recommended for rigid bodies, and usually not recommended for static bodies either because it forces checks against it on every frame.

Inheritance Chain

Constructors

    public LineShape2D()

Properties

    public float D { get; set; }

The line’s distance from the origin.

    public Vector2 Normal { get; set; }

The line’s normal.

Methods

    [Obsolete("GetD is deprecated. Use the D property instead.")]
    public float GetD()

Getter for D

    [Obsolete("GetNormal is deprecated. Use the Normal property instead.")]
    public Vector2 GetNormal()

Getter for Normal

    [Obsolete("SetD is deprecated. Use the D property instead.")]
    public void SetD(float d)

Setter for D

    [Obsolete("SetNormal is deprecated. Use the Normal property instead.")]
    public void SetNormal(Vector2 normal)

Setter for Normal

Tags: