melonJS
    Preparing search index...

    Interface Rapier3dJointDefinition

    What world.addJoint() passes to Rapier3dAdapter.addJoint: melonJS's JointDefinition, whose anchors and axis may also carry a z.

    interface Rapier3dJointDefinition {
        a: Renderable;
        anchorA?: Vector3Like;
        anchorB?: Vector3Like;
        axis?: Vector3Like;
        b: Renderable;
        collideConnected?: boolean;
        limits?: { max: number; min: number };
        maxLength?: number;
        type: "hinge" | "rope" | "weld" | "slider";
    }
    Index
    anchorA?: Vector3Like

    in a's own space, relative to its pos; z defaults to 0

    anchorB?: Vector3Like

    in b's own space, relative to its pos; z defaults to 0

    "hinge": the axis the bodies turn about, default Z, so a hinge turns as it does in 2D. "slider": the direction b slides in, default X. In a's own space; z defaults to 0.

    collideConnected?: boolean
    limits?: { max: number; min: number }
    maxLength?: number
    type: "hinge" | "rope" | "weld" | "slider"