-
Notifications
You must be signed in to change notification settings - Fork 1
OVRPlayerController
Before setting up the OVRPlayerController
make sure you have installed the Oculus Integration Package!
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
.
Under assets, find OculusTouchForQuestAndRiftS_Right', and drag it onto the
RightHandAnchorunder the
OVRCameraRig's
Tracking Spacechild. Similarly, drag
OculusTouchForQuestAndRiftS_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.