Struct RectangleShape2D

Rectangle shape for 2D collisions.

struct RectangleShape2D ;

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

Properties

NameTypeDescription
extents[get, set] Vector2The rectangle's half extents. The width and height of this shape is twice the half extents.

Methods

NameDescription
getExtents
setExtents