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

    [Obsolete("GetExtents is deprecated. Use the Extents property instead.")]
    public Vector2 GetExtents()

Getter for Extents

    [Obsolete("SetExtents is deprecated. Use the Extents property instead.")]
    public void SetExtents(Vector2 extents)

Setter for Extents

Tags: