
14 | A Detailed Look at the Unity Integration | Unity
Helper Classes
In addition to the above components, your scripts can always access the HMD state via static members of
OVRManager.
OVRDisplay Provides the pose and rendering state of the HMD.
OVRTracker Provides the pose, frustum, and tracking status of the infrared tracking camera.
OvrCapi
OvrCapi is a C# wrapper for LibOVR (specifically, CAPI). It exposes all device functionality, allowing you to
query and set capabilities for tracking, rendering, and more. Please refer to the Oculus Developer Guide and
reference manual for details.
Note: OvrCapi is available for the PC Unity Integration only.
OVRCommon OVRCommon is a collection of reusable static functions, including conversions between
Unity and OvrCapi types.
Utilities
The following classes are optional. We provide them to help you make the most of virtual reality, depending on
the needs of your application.
OVRPlayerController OVRPlayerController implements a basic first-person controller for the VR framework. It
is attached to the OVRPlayerController prefab, which has an OVRCameraRig attached
to it.
The controller will interact properly with a Unity scene, provided that the scene has
collision detection assigned to it.
OVRPlayerController contains a few variables attached to sliders that change the
physics properties of the controller. This includes Acceleration (how fast the player will
increase speed), Dampening (how fast a player will decrease speed when movement
input is not activated), Back and Side Dampen (how much to reduce side and back
Acceleration), Rotation Amount (the amount in degrees per frame to rotate the user in
the Y axis) and Gravity Modifier (how fast to accelerate player down when in the air).
When HMD Rotates Y is set, the actual Y rotation of the cameras will set the Y rotation
value of the parent transform that it is attached to.
The OVRPlayerController prefab has an empty GameObject attached to it called
ForwardDirection. This game object contains the matrix which motor control bases it
direction on. This game object should also house the body geometry which will be seen
by the player.
OVRGamepadController OVRGamepadController is an interface class to a gamepad controller.
On Windows systems, the gamepad must be XInput-compliant.
Note: currently native XInput-compliant gamepads are not supported on Mac OS. Please
use the conventional Unity input methods for gamepad input.
Comentarios a estos manuales