Documentation
    Preparing search index...

    Interface JointLimit

    Per-joint hinge or ball limit, in radians about a local axis.

    Omit the entry (or pass null / undefined) for an unlimited joint. axis omitted is a ball: the angle between the rest outgoing bone and the current outgoing is clamped to [min, max]. axis supplied is a hinge: the outgoing bone is projected onto the plane ⊥ axis and the signed angle from the rest outgoing, about that axis, is clamped.

    interface JointLimit {
        axis?: Vector3;
        max: number;
        min: number;
    }
    Index
    axis?: Vector3

    Hinge axis in the coordinates the chain is solved in (world, for a world-position chain). Not copied after the solve starts — the caller owns it. Omit for a ball limit.

    max: number

    Upper bound, in radians (§7a). Must be >= min.

    min: number

    Lower bound, in radians (§7a).