@bitmovin/player-integration-webxr - v1.2.0
    Preparing search index...

    Interface RecenterRigConfig

    The recenter rig's options. Each left out takes its default.

    interface RecenterRigConfig {
        camera?: string;
        distance?: number;
        levelToWorld?: boolean;
        maxPitchDeg?: number;
        pitchRelativeToView?: boolean;
        dropDeg?: number;
        maxDriftM?: number;
        key?: string;
        follow?: boolean;
        followDeg?: number;
        followDelayMs?: number;
        followMs?: number;
    }
    Index
    camera?: string

    Selector for the camera the rig places the panel in front of. Where it matches nothing, the scene's active camera. Defaults to "#cam".

    distance?: number

    How far in front of the viewer the panel sits, in meters. Defaults to 2.5.

    levelToWorld?: boolean

    Whether the panel is kept level with the horizon. Off: it rolls with the viewer's head when placed. Defaults to true.

    maxPitchDeg?: number

    Most the panel sits above or below the horizon, in degrees, measured from the viewer. Clamped to 0–85. Defaults to 30.

    pitchRelativeToView?: boolean

    Whether the panel's height follows the view's pitch, rather than a fixed drop below the horizon. Defaults to false.

    dropDeg?: number

    How far below the horizon (or the view, see pitchRelativeToView) the panel sits, in degrees. Defaults to 25.

    maxDriftM?: number

    Vertical error, in meters, after which the rig places the panel again. Catches a viewer sitting down or standing up, and a pose that arrived late. Defaults to 0.5.

    key?: string

    The key that recenters the panel. A controller grip squeeze does the same. Defaults to "r".

    follow?: boolean

    Whether the rig follows a viewer who has turned away, in every mode: a phone held up turns the same way a head does. The panel's owner can suspend the follow on top of this, as the control bar does unless its own follow is set. Defaults to true.

    followDeg?: number

    How far the heading may turn before the rig follows, in degrees. Defaults to 40.

    followDelayMs?: number

    How long the heading has to stay outside that first, in ms, so a glance across the room and back leaves the panel where it was. Defaults to 500.

    followMs?: number

    How long the follow takes to arrive, in ms. The panel glides rather than jumps. Defaults to 300.