Michael Hogan
Michael Hogan

Reputation: 144

Handling GearVR Touchpad input?

When I add an OVRPlayerController into a Unity3d scene and build and run the scene for the GearVR the built-in touchpad spins the camera around the vertical axis, which is redundant with head tracking. What do I need to change so that the touchpad instead allows the camera to move forward and backward, as if walking? Is there a thorough tutorial?

Upvotes: 1

Views: 3371

Answers (1)

Saeid Farivar
Saeid Farivar

Reputation: 1687

The Oculus SDK 0.4.3 comes with the support for the GearVR Samsung GamePad. All you need to do:

  1. import the SDK.
  2. overwrite the projectsettings folder of your project with the one that comes with the SDK.
  3. add the overplayercontroller to your scene.
  4. add a gameobject below the overplayercontroller e.g. plane, quad... this will act like the ground (keep the player from falling)
  5. add a collider to the gameobject e.g. mesh collider

then once you run it you will see that you can move around using the gamepad as well as turning the came around the vertical axis...

basically use any first person shooter tutorial for Unity3D and because the Oculus SDK comes with support for the gamepad you can quickly do this... this link might help https://www.youtube.com/watch?v=mbm9lPB5GPw

Upvotes: 4

Related Questions