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.

27 lines (26 loc) 1.31 kB
import { VRDeviceOrientationFreeCamera } from "./vrDeviceOrientationFreeCamera.js"; import { VRCameraMetrics } from "./vrCameraMetrics.js"; import type { Scene } from "../../scene.js"; import { Vector3 } from "../../Maths/math.vector.js"; import "../../Gamepads/gamepadSceneComponent.js"; /** * Camera used to simulate VR rendering (based on VRDeviceOrientationFreeCamera) * @see https://doc.babylonjs.com/features/featuresDeepDive/cameras/camera_introduction#vr-device-orientation-cameras */ export declare class VRDeviceOrientationGamepadCamera extends VRDeviceOrientationFreeCamera { /** * Creates a new VRDeviceOrientationGamepadCamera * @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 VRDeviceOrientationGamepadCamera */ getClassName(): string; protected _setRigMode: (rigParams: any) => void; }