public float getMaxRotation(int axisIndex) {
        float result;
        switch (axisIndex) {
            case PhysicsSpace.AXIS_X:
                result = maxX;
                break;
            case PhysicsSpace.AXIS_Y:
                result = maxY;
                break;
            case PhysicsSpace.AXIS_Z:
                result = maxZ;
                break;
            default:
                String msg = String.format("axisIndex=%d", axisIndex);
                throw new IllegalArgumentException(msg);
        }

        return result;
    }
Read the maximum rotation around the indexed axis.

@param axisIndex which axis: 0&rarr;X, 1&rarr;Y, 2&rarr;Z

@return the rotation angle (in radians)
jme3-jbullet/src/main/java/com/jme3/bullet/animation/RangeOfMotion.java