UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

26 lines (25 loc) 1.22 kB
import { DeviceOrientationCamera } from "../../Cameras/deviceOrientationCamera.js"; import { VRCameraMetrics } from "./vrCameraMetrics.js"; import type { Scene } from "../../scene.js"; import { Vector3 } from "../../Maths/math.vector.js"; /** * Camera used to simulate VR rendering (based on FreeCamera) * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#vr-device-orientation-cameras */ export declare class VRDeviceOrientationFreeCamera extends DeviceOrientationCamera { /** * Creates a new VRDeviceOrientationFreeCamera * @param name defines camera name * @param position defines the start position of the camera * @param scene defines the scene the camera belongs to * @param compensateDistortion defines if the camera needs to compensate the lens distortion * @param vrCameraMetrics defines the vr metrics associated to the camera */ constructor(name: string, position: Vector3, scene?: Scene, compensateDistortion?: boolean, vrCameraMetrics?: VRCameraMetrics); /** * Gets camera class name * @returns VRDeviceOrientationFreeCamera */ getClassName(): string; protected _setRigMode: (rigParams: any) => void; }