Is SimpleMove() framerate-independent under the hood?

Because if I try to multiply my direction/speed that I’m passing it by Time.deltaTime, it just doesn’t work at all. eg:

controller.SimpleMove(transform.forward*speed*Time.deltaTime);

If I remove Time.deltaTime, it works fine. Also it appears to move at the same speed when I disable vsync and run the game several hundred frames per second faster, so I’m assuming it is framerate independent. Not sure though, as I would think the docs would indicate that.

1 Answer

1

The doc do indicate that you give it a speed in meter/s.
So that is self explanatory : in one second it will advance of x meters. So it will still advance x meter if you have 600 frames or 2 in 1 seconds.

It’s framerate independent.

Good point... I missed that meters/second thing somehow! (Although, I would think that should say units per second?)