Hello !
I have a little problem to animate a move between to point.
I have a client/server application. The server send to client new location of entitys every seconds.
If i just ajust localTranslation of my entities with "setLocalTranslation()", it work like charm. But when i want to use SpatialTransformer to do a smoother translation, nothing work (no error, but no movement)
I don't see where is my mistake.
//(Spatial)Target = entity to move
//(Vector3f)move = point to reach
target.clearControllers();
SpatialTransformer moveAnim = new SpatialTransformer();
moveAnim.setObject(target, 0, -1);
moveAnim.setPosition(0, 0, target.getLocalTranslation());
moveAnim.setPosition(0, 1, move);
moveAnim.interpolateMissing();
moveAnim.setActive(true);
target.addController(moveAnim);