Interface VRExperienceHelperOptions
interface VRExperienceHelperOptions {
createDeviceOrientationCamera?: boolean;
createFallbackVRDeviceOrientationFreeCamera?: boolean;
floorMeshes?: Mesh[];
laserToggle?: boolean;
useXR?: boolean;
vrDeviceOrientationCameraMetrics?: VRCameraMetrics;
}
createDeviceOrientationCamera?: boolean;
createFallbackVRDeviceOrientationFreeCamera?: boolean;
floorMeshes?: Mesh[];
laserToggle?: boolean;
useXR?: boolean;
vrDeviceOrientationCameraMetrics?: VRCameraMetrics;
}
Properties
Optionalcreate Device Orientation Camera
createDeviceOrientationCamera?: boolean
Create a DeviceOrientationCamera to be used as your out of vr camera. (default: true)
Optionalcreate Fallback VR Device Orientation Free Camera
createFallbackVRDeviceOrientationFreeCamera?: boolean
Create a VRDeviceOrientationFreeCamera to be used for VR when no external HMD is found. (default: true)
Optionalfloor Meshes
floorMeshes?: Mesh[]
A list of meshes to be used as the teleportation floor. If specified, teleportation will be enabled (default: undefined)
Optionallaser Toggle
laserToggle?: boolean
Uses the main button on the controller to toggle the laser casted. (default: true)
Optionaluse XR
useXR?: boolean
Defines if WebXR should be used (if available)
Optionalvr Device Orientation Camera Metrics
Distortion metrics for the fallback vrDeviceOrientationCamera (default: VRCameraMetrics.Default)
Options to modify the vr experience helper's behavior.