Aego Русский

Go

cams := sdk.CamerasOf(ctx)
cams.Shake("", 0.5)
if k, err := cams.BlendTo(bossCam, 1.5, false); err == nil {
  cams.OnBlendCompleted(k, func(finished bool) { ... })
}

Service has Active, BlendTo, Release, Shake, Trauma, Logical, Render, View and Snap, all keyed by output name; "" is the main output.

The module publishes the camera2d.adjust contract; render2d.cameras asks it to adjust the view of every Camera 2D. The system camera.update (PostUpdate, also while paused) picks cameras, advances blends and zones and fades trauma; follow and the final pose are computed when the view is built, once per output and frame. A module can scale the shake by providing camera2d.accessibility with the IDs of its settings.