Rectangle shape for 2D collisions.
    public class RectangleShape2D : Shape2D

Rectangle shape for 2D collisions. This shape is useful for modeling box-like 2D objects.

Inheritance Chain

Constructors

    public RectangleShape2D()

Properties

    public Vector2 Extents { get; set; }

The rectangle’s half extents. The width and height of this shape is twice the half extents.

Methods

    public Vector2 GetExtents()

Getter for Extents

    public void SetExtents(Vector2 extents)

Setter for Extents

Tags: