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 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


    public LineShape2D()


    public float D { get; set; }

The line’s distance from the origin.

    public Vector2 Normal { get; set; }

The line’s normal.


    public float GetD()

Getter for D

    public Vector2 GetNormal()

Getter for Normal

    public void SetD(float d)

Setter for D

    public void SetNormal(Vector2 normal)

Setter for Normal