Segment shape for 2D collisions.
    public class SegmentShape2D : Shape2D

Segment shape for 2D collisions. Consists of two points, a and b.

Inheritance Chain

Constructors

    public SegmentShape2D()

Properties

    public Vector2 A { get; set; }

The segment’s first point position.

    public Vector2 B { get; set; }

The segment’s second point position.

Methods

    public Vector2 GetA()

Getter for A

    public Vector2 GetB()

Getter for B

    public void SetA(Vector2 a)

Setter for A

    public void SetB(Vector2 b)

Setter for B

Tags: