math docs
    Preparing search index...

    Function setLocalJoint

    • Sets a joint's limits relative to the previous bone's direction, which is the usual case.

      Parameters

      • joint: Joint2

        the joint to configure

      • clockwise: number

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

      • anticlockwise: number

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

      Returns Joint2

      the joint