Creates a new ShakeEffect.
The maximum rotation intensity of the shake (scaled internally to radians).
The approximate duration of the shake in seconds (controls trauma decay rate).
ReadonlyflashTint color for this effect's flash contribution.
This effect's contribution to the post-processing screen flash, in [0, 1].
Whether the effect has finished its duration and should be removed.
ReadonlyoffsetThe current position offset generated by this effect.
Pitch (X-axis) rotation offset in radians, applied to the view direction.
ReadonlytargetThe current target offset generated by this effect.
ReadonlytypeThe unique type identifier of the effect.
Yaw (Y-axis) rotation offset in radians, applied to the view direction.
A screen shake effect for the camera, driven by a decaying "trauma" value (trauma^2 envelope, per Squirrel Eiserloh's GDC talk "Juicing Your Cameras With Math") and continuous simplex noise instead of per-frame white noise, so the shake reads as a smooth wobble rather than a jittery flicker.
Shakes the camera's pitch/yaw (view direction) rather than its position: rotating the camera can never push it through level geometry, unlike a positional offset.