Reply To: Just inquiry about Rigidbody!

Forum Archive Just inquiry about Rigidbody! Reply To: Just inquiry about Rigidbody!

#28636
Jonathan Gonzalez
Participant

    It can still look smooth in Update, it’s the only thing running in game. You can include stuff like this within Update and probably not see issues like we see in the video. The main concern with this is the timing. I didn’t use it in this video as I should have, but adding Time.deltaTime ensures that the movement is time dependent on not frame rate dependent. 

    Without that someone could run the game at a higher frame rate and see the object moving at a faster rate since it updates faster. FixedUpdate updates at a fixed interval of .02 seconds, so it acts in a similar way. The physics in game update at that same rate, that’s why it’s encouraged to use that when moving physics based objects around in game.