PHYSICS • CAMERA JITTER

Unity Transform.Translate Stuttering, Jittering & Passing Through Walls

Understand why direct transform positioning bypasses physics interpolation, clips through colliders, and produces camera micro-stuttering on 120Hz/144Hz displays.

The Architectural Difference

transform.Translate() teleports the GameObject coordinates each frame without consulting the PhysX engine. When a camera tracks a teleporting object, frame rate variations cause perceptible jitter. Switching to rb.MovePosition() inside FixedUpdate() with Interpolate enabled creates silky-smooth 60 FPS motion.

1

Silky Smooth Rigidbody Movement Replacement

SmoothPhysicsMovement.cs (C#)
using UnityEngine;

[RequireComponent(typeof(Rigidbody))]
public class SmoothPhysicsMovement : MonoBehaviour
{
    [SerializeField] private float moveSpeed = 12f;

    private Rigidbody rb;
    private Vector3 movementInput;

    private void Awake()
    {
        rb = GetComponent<Rigidbody>();
        rb.interpolation = RigidbodyInterpolation.Interpolate; // KEY FOR ZERO JITTER
    }

    private void Update()
    {
        // Gather input smoothly in Update
        float h = Input.GetAxisRaw("Horizontal");
        float v = Input.GetAxisRaw("Vertical");
        movementInput = new Vector3(h, 0f, v).normalized;
    }

    private void FixedUpdate()
    {
        // ❌ BAD: transform.Translate(movementInput * moveSpeed * Time.deltaTime);

        // ✅ GOOD: Move using Rigidbody physics in FixedUpdate
        Vector3 targetPos = rb.position + (movementInput * (moveSpeed * Time.fixedDeltaTime));
        rb.MovePosition(targetPos);
    }
}

Related Physics Guides

Transform.Translate vs Rigidbody Movement: Why Objects Pass Through Walls

Using transform.position += direction * speed * Time.deltaTime or transform.Translate() on an object with a BoxCollider or SphereCollider completely bypasses Unity's PhysX physics simulation. Instead of sliding along geometry, the object teleports directly through walls because PhysX is not given an opportunity to test sweep collisions.

The Correct Kinematic Sweep Pattern

If you want collision-respecting motion with manual velocity control, use Rigidbody.MovePosition() inside FixedUpdate():

SafeKinematicMover.cs (C#)
using UnityEngine;

[RequireComponent(typeof(Rigidbody))]
public class SafeKinematicMover : MonoBehaviour
{
    [SerializeField] private float speed = 12f;
    private Rigidbody rb;

    private void Awake()
    {
        rb = GetComponent<Rigidbody>();
        rb.isKinematic = true; // Still stops against other colliders when using MovePosition!
    }

    public void Move(Vector3 direction)
    {
        Vector3 targetPos = rb.position + direction.normalized * speed * Time.fixedDeltaTime;
        rb.MovePosition(targetPos);
    }
}

When Is Transform Translation Acceptable?

Modifying transform.position directly is safe and optimal only for objects that do not interact with physics geometry: pure UI Canvas elements, background parallax starfields, screen-space reticles, and decorative particle effects that use trigger-less visual simulation.

Physics Sweep Testing: If you need custom character controllers that avoid Rigidbody physics but still detect walls, use Physics.CapsuleCast() or Physics.SphereCast() in your movement loops to predict collisions before applying position deltas.