Search The Query
Search

Indie Game Development Guides, Tutorials & Business Insights

  • Home
  • Unity Gamedev
  • Unity Update vs FixedUpdate vs LateUpdate: The Simple Rule That Stops Jittery Movement
A digital graphic compares Unity Update, FixedUpdate, and LateUpdate methods, featuring a car illustration in the "FixedUpdate" section with highlighted colored boxes.

Unity Update vs FixedUpdate vs LateUpdate: The Simple Rule That Stops Jittery Movement


Most Unity beginners search for “Unity Update vs FixedUpdate vs LateUpdate” because their game feels jittery, physics act inconsistently, or the camera won’t stop shaking. The short answer is: use Update() for input and gameplay logic, FixedUpdate() for physics and Rigidbody movement, and LateUpdate() for camera and final adjustments, in that order. Once you align your scripts with this simple pipeline, your game instantly becomes smoother, more responsive, and more predictable.

🎮 Stop Putting Everything in Update()

If your Unity game feels “off” — jittery movement, physics that sometimes miss collisions, or a camera that vibrates like it’s on cheap shock absorbers — there’s a good chance the problem starts with one habit: putting everything into Update().

Unity actually runs three main per-frame methods with very different timing: Update(), FixedUpdate(), and LateUpdate(). Using the wrong one won’t always throw an error, but it will quietly sabotage your game feel, especially as your project grows.

In this article you’ll learn a mental model you can actually remember, see real bugs caused by misusing these methods, and get copy‑paste‑ready examples you can drop into your project today.

Key Takeaways Unity Update vs FixedUpdate vs LateUpdate

  • Treat Unity’s loop as a pipeline: Input (Update) → Physics (FixedUpdate) → Camera (LateUpdate).
  • Read input and run most gameplay logic in Update(); keep physics and Rigidbody operations in FixedUpdate().
  • Put cameras and “dependent” logic in LateUpdate() so they always see the final state of the frame.
  • Don’t rely on cross‑object Update() ordering; if you need strict ordering, use LateUpdate() or script execution settings.
  • If your game feels jittery, unstable, or inconsistent across machines, your first audit should be: what’s running in each of these three methods?

The One-Liner Mental Model

Here’s the rule I wish someone had drilled into me on my first week with Unity:

Input → Physics → Camera

Mapped to Unity methods, that becomes:

  • Update() → Player input & frame-based gameplay logic
  • FixedUpdate() → Physics & Rigidbody movement
  • LateUpdate() → Camera & final adjustments

Unity calls them in this order each frame:

  1. Update() (can run once per rendered frame)
  2. One or more FixedUpdate() calls if physics needs to “catch up”
  3. LateUpdate() after all Update() calls finish

Lock that pipeline into your brain and a lot of weird behavior suddenly makes sense.


How Unity’s Loop Actually Works

Unity Update vs FixedUpdate vs LateUpdate ---  Timeline diagram showing the order of Update, FixedUpdate, and LateUpdate in Unity
Think of Unity’s loop as a pipeline: input, then physics, then camera.

Unity runs your scripts as a sequence of event functions on MonoBehaviour components. The three we care about here are all “per-frame” style methods, but they’re tied to different clocks.

Update() — The Frame Clock

  • Called once per rendered frame.
  • Frame rate dependent (30 FPS vs 144 FPS will change how often it runs).
  • Best for:
    • Reading input (keyboard, mouse, gamepad, touch).
    • Non-physics gameplay logic and timers.
    • UI updates and lightweight animations.

Typical pattern:

void Update()
{
    float h = Input.GetAxis("Horizontal");
    float v = Input.GetAxis("Vertical");

    Vector3 direction = new Vector3(h, 0f, v);
    MoveCharacter(direction);
}

This code is frame-rate dependent, so you normally multiply movement by Time.deltaTime to normalize speed.

FixedUpdate() — The Physics Clock

  • Called on a fixed timestep, default 0.02 seconds (50 times per second).
  • Not tied to frame rate; Unity may call it multiple times per frame or skip it for a frame.
  • All physics calculations and Rigidbody updates happen right after FixedUpdate().

Best for:

  • Applying Rigidbody.AddForce, MovePosition, MoveRotation.
  • Complex collision logic that depends on consistent physics updates.

Example:



Rigidbody rb;
public float moveForce = 10f;

void FixedUpdate()
{
    Vector3 targetVelocity = moveInput * moveForce;
    rb.AddForce(targetVelocity, ForceMode.Acceleration);
}

You usually do not multiply by Time.deltaTime inside FixedUpdate() because the engine already uses a fixed timestep for physics.

LateUpdate() — The Cleanup Pass

  • Called once per frame after all Update() calls are done.
  • Perfect for logic that depends on other objects having already moved.

Best for:

  • Camera follow systems.
  • Screen shake or camera smoothing.
  • “Final pass” visual tweaks that must use the latest transforms.

Example:

public Transform target;
public Vector3 offset;
public float smoothTime = 0.15f;

private Vector3 _velocity;

void LateUpdate()
{
    Vector3 desiredPosition = target.position + offset;
    transform.position = Vector3.SmoothDamp(
        transform.position,
        desiredPosition,
        ref _velocity,
        smoothTime
    );
}

Because your player has already moved in Update()/FixedUpdate(), the camera always follows the latest position, reducing jitter.


Developer War Stories: How Misusing Update Broke Real Games

These are anonymized but real situations I’ve seen (or done myself) on shipped projects.

1. The Teleporting Car (Input in FixedUpdate())

A junior programmer built a racing prototype where steering input was read in FixedUpdate(), because “physics = FixedUpdate().” The result: at high frame rates, cars felt sluggish and unresponsive; at low frame rates, steering stuttered.

Why it broke:

  • Input hardware is sampled per frame, not per physics tick.
  • FixedUpdate() doesn’t line up perfectly with player input events.

The fix:

  • Read input in Update().
  • Store it in variables.
  • Consume those variables in FixedUpdate() when applying forces.

Pattern:


Vector2 _moveInput;

void Update()
{
    _moveInput.x = Input.GetAxis("Horizontal");
    _moveInput.y = Input.GetAxis("Vertical");
}

void FixedUpdate()
{
    ApplyCarForces(_moveInput);
}

After this change, the car suddenly felt “snappy” without any physics changes.

2. The Shaky Third‑Person Camera (Camera in Update())

On a third‑person action game, the camera followed the player by reading the player’s position in Update() and lerping towards it. At 60 FPS it looked okay. On a mid‑range laptop at 40 FPS, the camera visibly shook whenever the player sprinted.

Root cause:

  • Player movement ran in Update() in one script.
  • Camera follow also ran in Update() but on a different script and GameObject.
  • Unity does not guarantee the order of Update() between GameObjects; it can change between runs or builds.

Sometimes the camera updated before the player moved, sometimes after.

The fix:

  • Move camera follow logic to LateUpdate(), which runs after all Update() methods.

Once we did that, the camera always saw the final player position for the frame, and the jitter vanished.

3. The “Works on My Machine” Platformer (Physics in Update())

A platformer prototype used transform.Translate() inside Update() for character movement and relied on colliders to prevent the player from falling through platforms. It worked fine at 120 FPS on the lead dev’s monitor. At 30 FPS on a test console, the player occasionally tunneled through thin platforms.

Why:

  • Movement step size at low FPS was large, so the collider jumped past thin colliders between frames.
  • Because movement was not synchronized with physics, the contact points became inconsistent.

The fix:

  • Move movement to FixedUpdate() using Rigidbody and forces or MovePosition.
  • Let the physics engine handle continuous collision detection correctly.

Practical Use Cases (With Code)

Unity Update vs FixedUpdate vs LateUpdate ---Annotated car game scene linking steering, physics, and camera to Update, FixedUpdate, and LateUpdate“
A simple car game clearly maps to the trio: Update for input, FixedUpdate for forces, LateUpdate for camera.

Let’s make this concrete with a simple car game, mirroring the mental model Input → Physics → Camera.

Car Controller Overview

FunctionResponsibilityTypical Code Location
Read steering & throttlePoll player input each frameUpdate() 
Apply engine force & brakingUse Rigidbody and physics forcesFixedUpdate() 
Smooth camera followTrack car after movement is finishedLateUpdate() 

1. Update() — Reading Input

csharppublic class CarInput : MonoBehaviour
{
    public float Steering { get; private set; }
    public float Throttle { get; private set; }
    public bool Handbrake { get; private set; }

    void Update()
    {
        Steering = Input.GetAxis("Horizontal");
        Throttle = Input.GetAxis("Vertical");
        Handbrake = Input.GetKey(KeyCode.Space);
    }
}

You can keep this in its own component and let FixedUpdate() pull from it.

2. FixedUpdate() — Applying Physics

csharp[RequireComponent(typeof(Rigidbody))]
public class CarPhysics : MonoBehaviour
{
    public CarInput input;
    public float enginePower = 1500f;
    public float steerAngle = 30f;

    Rigidbody _rb;

    void Awake()
    {
        _rb = GetComponent<Rigidbody>();
    }

    void FixedUpdate()
    {
        // Forward force
        Vector3 force = transform.forward * input.Throttle * enginePower;
        _rb.AddForce(force);

        // Steering
        float turn = input.Steering * steerAngle * Mathf.Deg2Rad;
        Quaternion turnRotation = Quaternion.Euler(0f, turn, 0f);
        _rb.MoveRotation(_rb.rotation * turnRotation);
    }
}

Here, physics stays deterministic and feels consistent at a range of frame rates.

3. LateUpdate() — Camera Follow

csharppublic class CarCameraFollow : MonoBehaviour
{
    public Transform target;
    public Vector3 offset = new Vector3(0f, 5f, -8f);
    public float smoothSpeed = 5f;

    void LateUpdate()
    {
        Vector3 desiredPosition = target.position + offset;
        transform.position = Vector3.Lerp(
            transform.position,
            desiredPosition,
            smoothSpeed * Time.deltaTime
        );

        transform.LookAt(target);
    }
}

The car moves, physics settle, and then the camera smoothly tracks the final position.


Common Beginner Mistakes (And How To Fix Them)

Unity Update vs FixedUpdate vs LateUpdate ---Comparison of jittery camera in Update versus smooth camera in LateUpdate in Unity
Moving camera logic to LateUpdate often fixes mysterious jitter in follow cameras.

Mistake 1: Everything in Update()

Symptoms:

  • Movement speed changes with FPS.
  • Physics feel inconsistent or jittery.

Fix:

  • Move physics operations (AddForce, MovePosition, etc.) to FixedUpdate().
  • Use a Rigidbody instead of directly setting transform.position for physics-based objects.

Mistake 2: Raycasts and Collisions in Update() Only

If you raycast only in Update() for fast-moving bullets, they may skip over small colliders between frames at low FPS.

Fix:

  • Use Rigidbody with continuous collision detection, or perform physics-sensitive logic in FixedUpdate().

Mistake 3: Cross‑Object Dependencies in Update()

When Script A in Update() relies on Script B having already updated for the frame, you invite non-deterministic bugs because there’s no guaranteed ordering between different objects’ Update() calls.

Fix:

  • Move “depends on others” logic into LateUpdate().
  • For more complex dependencies, configure Script Execution Order in Project Settings.

Quick Reference Cheat Sheet

Use this for…MethodWhy it belongs there
Keyboard/mouse/gamepad/touch inputUpdate()Input is frame-based
Timers, cooldowns, state machinesUpdate()Tied to visible frame progression
Applying physics forces or impulsesFixedUpdate()| Runs at fixed timestep, synced with physics engine
Rigidbody-based character or vehicle moveFixedUpdate()| Keeps physics deterministic and stable
Camera follow/look-atLateUpdate()Needs final positions after all movement
Screen shake, camera lag, smoothingLateUpdate()Visual polish based on completed motion
Complex order-sensitive logic between scriptsLateUpdate() or Script Execution OrderGuarantees “after” semantics or explicit priority

For official details, Unity’s Event Function Execution Order docs are worth bookmarking.