math docs
    Preparing search index...

    Type Alias Joint2

    A joint's rotational limits: a wedge about a baseline.

    Angles are in radians, and a limit of PI means unconstrained in that direction. Anticlockwise is positive, matching vec2.signedAngle.

    type Joint2 = {
        anticlockwise: number;
        clockwise: number;
        coordinateSystem: ConstraintCoordinateSystem;
        globalAxis: vec2.Vec2;
    }
    Index
    anticlockwise: number

    How far the bone may swing anticlockwise of the baseline, in [0, PI].

    clockwise: number

    How far the bone may swing clockwise of the baseline, in [0, PI].

    coordinateSystem: ConstraintCoordinateSystem

    What clockwise and anticlockwise are measured from.

    globalAxis: vec2.Vec2

    The baseline for a GLOBAL joint - a world direction. Unit length. Unused when LOCAL.