# Camera Stabilization

{% embed url="<https://drive.google.com/file/d/1TafN92HHvxmCL4xDyemU7KmUkpaTpgPg/view?usp=sharing>" %}

{% embed url="<https://assetstore.unity.com/packages/tools/camera/camera-stabilization-174174>" %}

&#x20;

![](https://2688793952-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFj2vg4QJR2sRMIhR35%2F-MW08KCsxS6cSyvRZQOL%2F-MW0AU8Y9yLKEIftUcE3%2FCamera%20Stabilization.png?alt=media\&token=411b79f3-011d-40ba-a75a-b949772e0958)

Smooth out and stabilize your animations with this simple script.

**Purpose:**

This tool is ideal for creating first-person character controllers that use motion capture data to animate the character's body. Allowing for the first-person effect to be smoothed out instead of a violent head bob that would be achieved by setting the camera as a child of the head bone. It also can be used to smooth out rough animations.

**How it works:**

It works by averaging the position of your driver game object and your driven game object and applying it to the driven game object. Furthermore, it ensures that the camera will also revert to its local z-axis, which gives the illusion of real-time camera stabilization.

It requires two gameobjects to function, with one being the object that is being tracked and the other that is being moved.

**Features:**

Smooth out animations.\
Parent an object to another with smoothing.
