Documentation
    Preparing search index...

    Interface TrackballRigOptions

    Construction options for TrackballRig.

    interface TrackballRigOptions {
        distance?: number;
        height?: number;
        origin?: ScreenOrigin;
        radius?: number;
        rotation?: Quaternion;
        target?: Vector3;
        width?: number;
    }
    Index
    distance?: number

    Distance from TrackballRig.target. Finite and > 0. Default 1.

    height?: number

    Viewport height in pixels. Finite and > 0. Default 1.

    origin?: ScreenOrigin

    How the pixel coordinates handed to TrackballRig.drag are measured (§47, §7a). Default "top-left" — the §7a default, and what a DOM pointer event reports. Only the Y direction and the location of (0, 0) differ; see ScreenCamera.

    radius?: number

    Virtual sphere radius, as a fraction of half the shorter viewport side. Default 1.

    rotation?: Quaternion

    Initial orientation. Copied, not held. Default identity.

    target?: Vector3

    Point the camera is placed around, in its parent's space. Copied, not held.

    width?: number

    Viewport width in pixels. Finite and > 0. Default 1.