I’ve been reading the tutorials on animation for jMe and I noticed that all of them use a transformer of some type for another. Is this the common way of doing animation in jMe?
In 2D, I could easily specify acceleration and velocity and the likes by implementing them myself
long currentTime = System.currentTimeMillis();
while(true)
{
int timePassed = System.currentTimeMillis()-currentTime;
currentTime = System.currentTimeMillis();
updatePosition(timePassed);
paint(getGraphics());
}
But how would you do these complex animations in jMe, acceleration and velocity need to be accurate. I can't imagine doing this using SpatialTransfomer?
You have free reign to position nodes by hand if you need accuracy that controllers don’t give you. Just setLocalTranslation, setLocalRotation, setLocalScale. Those three methods will let you position a node anywhere at any orientation.