Reply To: Just inquiry about Rigidbody!

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

#28634
Jonathan Gonzalez
Participant

    I’m not quite sure I understand what you’re asking but I’ll see if I can clarify things. Whenever we use physics objects, least in terms of movement using FixedUpdate allows us to move that object at a fixed rate, typically set to .02 seconds. This ensures that objects move smoothly across the screen for everyone who plays the game. Update happens very quickly as well, but is not fixed and may update more times within one second than the next. Which means you’ll probably get a stuttering effect when moving physics objects. 

    If you use Time.deltaTime to move an object you’re telling it to move at a rate of 1 unit per second, that’s why it seems like it’s going slow.  If you multiply that by 10, then it’ll move 10 times faster. This is not dependent on the frame rate. So if someone is running the game at 60fps vs 120fps they’ll still get the same movement speed. Without this (or FixedUpdate) the object may move a lot faster or slower since it will be frame rate dependent. Hope that clears things up a bit.