RectangleShape2D

Inherits: Shape2D < Resource < Reference < Object

Rectangle shape for 2D collisions.

Description

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

Tutorials

Properties

Vector2extentsVector2( 10, 10 )

Property Descriptions

DefaultVector2( 10, 10 )
Setterset_extents(value)
Getterget_extents()

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