IShakableCamera Interface
Opt-in contract for cameras that support screen shake. The built-in Camera2D implements this. Custom ICamera implementations that don't need shake can skip this entirely.
public interface IShakableCamera : Brine2D.Rendering.ICamera
Derived
↳ Camera2D
Implements ICamera
| Methods | |
|---|---|
| CancelShake() | Immediately cancels any active camera shake and resets the shake offset. |
| Shake(float, float) | Triggers a camera shake that decays over the specified duration. |
| UpdateShake(float) | Advances shake state. Called by CameraSystem each frame. |