Skip to content

OVRPlayerController

Amon Ferri edited this page Jul 6, 2020 · 3 revisions

Before setting up the OVRPlayerController make sure you have installed the Oculus Integration Package!

Setting Up the OVRPlayerController

Delete the Main Camera from the scene hierarchy.
Once the package is installed, search for OVRPlayerController in the assets folder and drag one into the hierarchy.
If you wish, modify the radius property under the Character Controller script attached to the OVRPlayerController to change its size.
Click add component, and select Character Camera Constraint.
Expand the OVRPlayerController prefab in the hierarchy, and drag the OVRCameraRig child into the Character Camera Constraint's Camera Rig field.
If you want the player to collide with objects, check the Enable Collision box.
In the OVRCameraRig child, under the OVR Manager script, set Tracking Origin Type to Floor Level.

Setting Up the Controllers/Hands

Under assets, find OculusTouchForQuestAndRiftS_Right', and drag it onto the RightHandAnchorunder theOVRCameraRig's Tracking Spacechild. Similarly, dragOculusTouchForQuestAndRiftS_Left', onto the LeftHandAnchor.
If the two models are displaying the error material (bright pink), you will need to give them a new material for them to appear in the project.