$ ./guess_the_languageGame Dev
Game Dev · medium · #88

Why put physics code in FixedUpdate?

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