nape-js API
    Preparing search index...

    Variable DebugDrawFlagsConst

    DebugDrawFlags: {
        AABB: number;
        ALL: number;
        CENTER_OF_MASS: number;
        CONTACTS: number;
        JOINTS: number;
        SHAPES: number;
        VELOCITIES: number;
    } = ...

    Bitmask flags for controlling which elements are drawn by DebugDraw.

    Pass a combination of these flags (bitwise OR) to Space.debugDraw() to select which layers are rendered.

    Type Declaration

    • ReadonlyAABB: number

      Draw broadphase axis-aligned bounding boxes.

    • ReadonlyALL: number

      All flags combined.

    • ReadonlyCENTER_OF_MASS: number

      Draw body centre-of-mass markers.

    • ReadonlyCONTACTS: number

      Draw contact points and normals.

    • ReadonlyJOINTS: number

      Draw joint/constraint anchor points and connecting lines.

    • ReadonlySHAPES: number

      Draw shape outlines (circles and polygons).

    • ReadonlyVELOCITIES: number

      Draw body linear velocity vectors.

    space.debugDraw(myDrawer, DebugDrawFlags.SHAPES | DebugDrawFlags.JOINTS);