Nano WebGPU API - v0.11.0
    Preparing search index...

    Interface OrbitOptions

    Parameters for configuring a standard orbiting camera around a static spatial focal point.

    interface OrbitOptions {
        autoRotate?: boolean;
        autoRotateSpeed?: number;
        center?: Vec3 | number[];
        distance?: number;
        maxPitch?: number;
        minPitch?: number;
        sensitivity?: number;
    }
    Index

    Properties

    autoRotate?: boolean

    Toggle auto-rotation. Defaults to false.

    autoRotateSpeed?: number

    Velocity of auto-rotation in radians per second. Defaults to 1.0.

    center?: Vec3 | number[]

    The central focal coordinates vector to orbit around. Defaults to (0,0,0).

    distance?: number

    Orbit radius distance. Defaults to 8.

    maxPitch?: number

    Maximum pitch angle in degrees. Defaults to 60.

    minPitch?: number

    Minimum pitch angle in degrees. Defaults to -80.

    sensitivity?: number

    Mouse rotation sensitivity. Defaults to 0.003.