Documentation
    Preparing search index...

    Interface RectangleShape

    An axis-aligned rectangle in the XY plane, "2d" only (§24).

    interface RectangleShape {
        halfExtents: Vector2;
        type: "rectangle";
    }
    Index
    halfExtents: Vector2

    Half the width and half the height, measured from the centre along the local X and Y axes. Both components must be > 0.

    type: "rectangle"