Selva Compute API Reference - v2.1.0
    Preparing search index...

    Interface CameraControllerDeps

    interface CameraControllerDeps {
        controls: OrbitControls;
        onActiveCameraChange: (camera: Camera) => void;
        perspective: PerspectiveCamera;
        scene: Scene;
        up?: Vector3;
    }
    Index

    Properties

    controls: OrbitControls
    onActiveCameraChange: (camera: Camera) => void

    Called whenever the active camera identity changes, so callers can re-point the renderer/raycaster.

    perspective: PerspectiveCamera
    scene: Scene
    up?: Vector3

    The scene's up axis. Presets, the orthographic camera's up, and the iso direction are all derived from this so the controller is correct in any up convention (Three's native Y-up, Rhino's Z-up, …) without hardcoding an axis. Defaults to Y-up.