Why put physics code in FixedUpdate?
void FixedUpdate() { rb.velocity = move; }
- It runs on a fixed timestep
- It runs before every render
- It only runs while paused
- It skips the physics engine
FixedUpdate uses a constant interval, keeping physics stable and deterministic.
Play Game Dev ▸