Rectangle shape for 2D collisions. Rectangle shape for 2D collisions. This shape is useful for modeling box-like 2D objects. The rectangle's half extents. The width and height of this shape is twice the half extents.