/** * Rectangle shape for 2D collisions. This shape is useful for modeling box-like 2D objects. * */ declare class RectangleShape2D extends Shape2D { /** * Rectangle shape for 2D collisions. This shape is useful for modeling box-like 2D objects. * */ new(): RectangleShape2D; static "new"(): RectangleShape2D /** The rectangle's half extents. The width and height of this shape is twice the half extents. */ extents: Vector2; connect>(signal: T, method: SignalFunction): number; }