Struct RectangleShape2D
Rectangle shape for 2D collisions.
struct RectangleShape2D
;
This shape is useful for modeling box-like 2D objects.
Properties
Name | Type | Description |
---|---|---|
extents [get, set]
|
Vector2 | The rectangle's half extents. The width and height of this shape is twice the half extents. |
Methods
Name | Description |
---|---|
getExtents
|
|
setExtents
|