|
|
@ -168,6 +168,9 @@ public class Ipo { |
|
|
|
translation[0] = (float) value; |
|
|
|
translation[0] = (float) value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case AC_LOC_Y: |
|
|
|
case AC_LOC_Y: |
|
|
|
|
|
|
|
if(fixUpAxis && value != 0) { |
|
|
|
|
|
|
|
value = -value; |
|
|
|
|
|
|
|
} |
|
|
|
translation[yIndex] = (float) value; |
|
|
|
translation[yIndex] = (float) value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case AC_LOC_Z: |
|
|
|
case AC_LOC_Z: |
|
|
@ -179,11 +182,10 @@ public class Ipo { |
|
|
|
objectRotation[0] = (float) value * degreeToRadiansFactor; |
|
|
|
objectRotation[0] = (float) value * degreeToRadiansFactor; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case OB_ROT_Y: |
|
|
|
case OB_ROT_Y: |
|
|
|
if (fixUpAxis) { |
|
|
|
if(fixUpAxis && value != 0) { |
|
|
|
objectRotation[yIndex] = value == 0.0f ? 0 : (float) -value * degreeToRadiansFactor; |
|
|
|
value = -value; |
|
|
|
} else { |
|
|
|
|
|
|
|
objectRotation[yIndex] = (float) value * degreeToRadiansFactor; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
objectRotation[yIndex] = (float) value * degreeToRadiansFactor; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case OB_ROT_Z: |
|
|
|
case OB_ROT_Z: |
|
|
|
objectRotation[zIndex] = (float) value * degreeToRadiansFactor; |
|
|
|
objectRotation[zIndex] = (float) value * degreeToRadiansFactor; |
|
|
@ -208,10 +210,13 @@ public class Ipo { |
|
|
|
quaternionRotation[0] = (float) value; |
|
|
|
quaternionRotation[0] = (float) value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case AC_QUAT_Y: |
|
|
|
case AC_QUAT_Y: |
|
|
|
quaternionRotation[fixUpAxis ? 1 : 2] = (float) value; |
|
|
|
if(fixUpAxis && value != 0) { |
|
|
|
|
|
|
|
value = -value; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
quaternionRotation[yIndex] = (float)value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case AC_QUAT_Z: |
|
|
|
case AC_QUAT_Z: |
|
|
|
quaternionRotation[fixUpAxis ? 2 : 1] = (float) value; |
|
|
|
quaternionRotation[zIndex] = (float) value; |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
LOGGER.log(Level.WARNING, "Unknown ipo curve type: {0}.", bezierCurves[j].getType()); |
|
|
|
LOGGER.log(Level.WARNING, "Unknown ipo curve type: {0}.", bezierCurves[j].getType()); |
|
|
|