- Home /
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.
Answer by Sirithang · Sep 13, 2011 at 02:56 PM
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?)
Your answer
Follow this Question
Related Questions
How can I set a timer? 1 Answer
I can't get framerate independence to work... 1 Answer
Move in the direction its facing C# 2 Answers
Move Objects with Collision Without Impacting Frame Rate 0 Answers
Character Controller Won't SimpleMove() 0 Answers