Skip to content

IShakableCamera.Shake(float, float) Method

Definition

Namespace: Brine2D.Rendering

Triggers a camera shake that decays over the specified duration.

void Shake(float intensity, float duration);

Parameters

intensity System.Single

Maximum pixel offset at peak intensity.

duration System.Single

Duration in seconds before shake fully decays.