mwg API
    Preparing search index...

    Interface XpbdNodeSpec

    What XpbdWorld.addNode takes: a position in world units and an optional mass.

    interface XpbdNodeSpec {
        fixed?: boolean;
        mass?: number;
        x: number;
        y: number;
    }
    Index
    fixed?: boolean

    an anchor that never moves

    mass?: number

    point mass; 1 when omitted. Link mass is added on top

    x: number
    y: number