CameraController

sealed interface CameraController

What every camera controller can do, so generic UI (a "reset view" button) can drive whichever is active. The camera itself lives in the CameraState: read or set CameraState.viewpoint, or fly with CameraState.animateTo, and the controller carries on from there.

All three are created by their remember*CameraController factory.

Inheritors

Functions

Link copied to clipboard
abstract fun resetToHome()

Snap the camera back to the pose it had when this controller was first created.