ez06
1
I have all my functions running in Update() and want to move my object with it’s rigidBody but don’t want to mess up the order of the function so I would prefer putting all my code in Update.
If I use the following code in Update():
myRigidbody.MovePosition(transform.position + transform.forward * Time.deltaTime);
How can it be bad, since I’m using Time.deltaTime?
Probably not, since you’re just calling movePosition which is not a physics related like applying forces, torques, or other physics-related functions.
There is a pretty good explanation in the top answer here: What's the difference between Update and FixedUpdate? When are they called? - Unity Answers