public void setupJoint(SixDofJoint joint) {
        Vector3f lower = new Vector3f(minX, minY, minZ);
        Vector3f upper = new Vector3f(maxX, maxY, maxZ);

        RotationalLimitMotor rotX
                = joint.getRotationalLimitMotor(PhysicsSpace.AXIS_X);
        rotX.setLoLimit(lower.x);
        rotX.setHiLimit(upper.x);

        RotationalLimitMotor rotY
                = joint.getRotationalLimitMotor(PhysicsSpace.AXIS_Y);
        rotY.setLoLimit(lower.y);
        rotY.setHiLimit(upper.y);

        RotationalLimitMotor rotZ
                = joint.getRotationalLimitMotor(PhysicsSpace.AXIS_Z);
        rotZ.setLoLimit(lower.z);
        rotZ.setHiLimit(upper.z);

        joint.setAngularLowerLimit(lower);
        joint.setAngularUpperLimit(upper);

        for (int i = 0; i < 3; ++i) {
            RotationalLimitMotor rot = joint.getRotationalLimitMotor(i);
            rot.setMaxMotorForce(1e8f);
            rot.setMaxLimitForce(1e9f);
        }

        joint.setLinearLowerLimit(translateIdentity);
        joint.setLinearUpperLimit(translateIdentity);

        TranslationalLimitMotor tra = joint.getTranslationalLimitMotor();
        tra.setLowerLimit(translateIdentity);
        tra.setUpperLimit(translateIdentity);
    }
Apply this preset to the specified joint.

@param joint where to apply this preset (not null, modified)
jme3-jbullet/src/main/java/com/jme3/bullet/animation/RangeOfMotion.java