math docs
    Preparing search index...

    Function setGlobalJoint

    • Sets a joint's limits relative to a fixed world direction, pinning the bone's absolute heading however the bones before it move.

      Parameters

      • joint: Joint2

        the joint to configure

      • axis: readonly [number, number]

        the world direction the limits are measured from, assumed to be unit length

      • clockwise: number

        how far the bone may swing clockwise of axis, in radians, clamped to [0, PI]

      • anticlockwise: number

        how far it may swing anticlockwise, in radians, clamped to [0, PI]

      Returns Joint2

      the joint