# Camera Shake 2D

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

```
component camera.CameraShake2D
```

Tunes the shake of its virtual camera. Shake grows with trauma and fades over time.

## Fields

| Name | Script name | Type | Default | Description |
|---|---|---|---|---|
| Decay | `Decay` | `float` | `1.5` | Trauma lost per second. |
| Max Offset | `MaxOffset` | `Vec2` | `(0.5, 0.5)` | Largest offset in world units at full trauma. |
| Max Angle | `MaxAngle` | `float` | `0.05` | Largest rotation in radians at full trauma. |
| Frequency | `Frequency` | `float` | `25` | How fast the shake changes, in noise steps per second. |
| Exponent | `Exponent` | `float` | `2` | Shake is trauma to this power: 2 keeps small hits subtle. |

## Add

```
func (CameraShake2D) Add(trauma float)
```

Adds trauma to the output of this camera; trauma is capped at 1.
