API

Class FreeCameraDeviceOrientationInput

Takes information about the orientation of the device as reported by the deviceorientation event to orient the camera. Screen rotation is taken into account.

Implements

Index
smoothFactor: number = 0

alpha+beta+gamma smoothing. 0: no smoothing, 1: new data ignored, 0.9 recommended for smoothing

  • Can be used to detect if a device orientation sensor is available on a device

    Parameters

    • Optionaltimeout: number

      amount of time in milliseconds to wait for a response from the sensor (default: infinite)

    Returns Promise<void>

    a promise that will resolve on orientation change