MapCameraController

Drives a CameraState using a Filament Manipulator in MAP mode (top-down 2-D pan/zoom). Pair with Projection.Orthographic on the CameraState.

Functions

Link copied to clipboard
open override fun jumpToBookmark(bookmark: Manipulator.Bookmark)

Restore a pose previously captured with saveBookmark.

Link copied to clipboard
open override fun resetToHome()

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

Link copied to clipboard
open override fun saveBookmark(): Manipulator.Bookmark

Capture the current camera pose as a bookmark to restore later with jumpToBookmark.

Link copied to clipboard
open override fun setViewport(width: Int, height: Int)

Viewport size in px. Kept in sync automatically by the matching gesture modifier; call manually only when driving the manipulator without one.