Is there a way to add rotations to a spatial transformer without it resetting on its first position…?
anyway… yeah I saw the spatial rotation example in the package although… what I saw in the code…
rotationTransformer.setRotation(0,2,new Quaternion().fromAngleAxis(90 * FastMath.DEG_TO_RAD, VECTOR3F.UNIT_Y));
rotationTransformer.setRotation(0,2,new Quaternion().fromAngleAxis(180 * FastMath.DEG_TO_RAD, VECTOR3F.UNIT_Y));
makes a continuous 180 degree rotation using axis VECTOR3F.UNIT_Y for a total of four seconds.....
when I tried to change the code....
rotationTransformer.setRotation(0,2,new Quaternion().fromAngleAxis(90 * FastMath.DEG_TO_RAD, VECTOR3F.UNIT_Y));
rotationTransformer.setRotation(0,2,new Quaternion().fromAngleAxis(90 * FastMath.DEG_TO_RAD, VECTOR3F.UNIT_X));
what I imagined it to be was it would rotate 90 degrees right for 2 seconds then 90 degrees up for 2 seconds...
what happened was... yeah it rotated 90 degrees right... although its position was reset on the first point where its first rotation happened... then rotated 90 degrees up....awwwww... can someone enlighten me on this matter?
btw... I know I could just do this
rotationTransformer.setRotation(0,2,new Quaternion().fromAngleAxis(90 * FastMath.DEG_TO_RAD, new Vector3f(1,1,0)));
but it doesn't quite get me what I want with my animation.... what if I wanted a rotation of 90 in x axis and 45 on y..... this solution wouldn't help me either... please help :D