API reference
API reference
Select your platform
No SDKs available
No versions available

OVRDebugHeadController Class

This is a simple behavior that can be attached to a parent of the CameraRig in order to provide movement via the gamepad.
OVRDebugHeadController extends MonoBehaviour.

Overview

Data Fields

Object Data

Details

Detailed Description

This is useful when testing an application in the Unity editor without the HMD. To use it, create a game object in your scene and drag your CameraRig to be a child of the game object. Then, add the OVRDebugHeadController behavior to the game object. Alternatively, this behavior can be placed directly on the OVRCameraRig object, but that is not guaranteed to work if OVRCameraRig functionality changes in the future. In the parent case, the object with OVRDebugHeadController can be thougt of as a platform that your camera is attached to. When the platform moves or rotates, the camera moves or rotates, but the camera can still move independently while "on" the platform. In general, this behavior should be disabled when not debugging.

Fields

bool OVRDebugHeadController.AllowPitchLook
No description available.
bool OVRDebugHeadController.AllowYawLook
No description available.
bool OVRDebugHeadController.InvertPitch
No description available.
float OVRDebugHeadController.GamePad_PitchDegreesPerSec
No description available.
float OVRDebugHeadController.GamePad_YawDegreesPerSec
No description available.
bool OVRDebugHeadController.AllowMovement
No description available.
float OVRDebugHeadController.ForwardSpeed
No description available.
float OVRDebugHeadController.StrafeSpeed
No description available.

Object Data

OVRCameraRig OVRDebugHeadController.CameraRig
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon