Hi,
I’m trying to understand the difference between engine.getDeltaTime and scene.getAnimationRatio. Can someone help me to understand it?
Another thing that I noticed is: when using FollowCamera to follow an object that is moved using elapsedTime = engine.getDeltaTime, the camera goes tremulous. If I remove the elapsed time, the camera movement is smooth. Am I making something wrong?
I’m using this code to move my object:
let elapsedTime = (GAME.engine.getDeltaTime() / 1000),
gravity = (this.godMode) ? 0 : (this.gravity / 100);
this.mesh.moveWithCollisions(new BABYLON.Vector3(
0,
gravity,
this.speed * elapsedTime
));
Thanks by help!