I have discovered that the move speed of this.entity.translateLocal (0,0, -0.01) is not always the same. Sometimes I have to increase the speed slightly to get the same result in the game.
I tried to use times delta time but that results in unexpected and unstable movements of my kinematic entity.
With kinematic entities, they should be moved by changing the velocities of the rigid body. Moving them by changing the entity position can cause unexpected behaviour.
Thanks for your reply Yaustar! I try to do this with this.entity.rigidbody.applyForce(0, 0, -10) but then my entity is not moving. So how do i change to velocities correctly?
Sorry, i don’t understand your reaction. My entity is moving with this solution, but not in the local rotation of the entity. So i can’t use it.
With this.entity.translateLocal(0,0,-this.moveSpeed) everything works well, but when this.moveSpeed is 0.01 sometimes (i think when CPU or connection is busy) in game it feels like 0.008. And because of that little diffrent the game doesn’t play well anymore.
It seems that both options work. I no longer see unexpected movements when i use delta time, so I will first apply this option to see if this solved the problem. Thanks for your help!