I don't fully understand the underlying mechanism of Object.animate() method and how you were using it, but I doubt you were using Matrix.interpolate(...) to interpolate your translation matrix.
Actually translation matrices can't be simply interpolated through linear interpolation of their elements, as what Matrix.interpolate() method does.
Generally you have to:
1) decompose matrices into simpler transformations: translation, rotation, scale;
or
2) convert matrices to quaternions instead,
then do the linear interpolations and finally convert back to get the new translation matrix.
Actually translation matrices can't be simply interpolated through linear interpolation of their elements, as what Matrix.interpolate() method does.
Generally you have to:
1) decompose matrices into simpler transformations: translation, rotation, scale;
or
2) convert matrices to quaternions instead,
then do the linear interpolations and finally convert back to get the new translation matrix.
Quote from: sushobhit on March 27, 2014, 02:57:11 PM
By the way I am facing a very peculiar problem
I have made a truck model and the truck has four cylinders as tyres.
Now i have used joint rotation to animate the tyres ..
When I export the MD2(mikshaper3d) and load the animation (ie object.animate(ind,frame)
The animation is very very creepy the tyres rotate as specified but after some time during the anim they shrink and then again expand .
So I loaded the anim in milkshape MD2 viewer , there was a same problem there too
But when I disable interpolation the anim runs fine (what is happening what's the problem)
So how do i disable interpolation in JPCT (of the object)