Set up your scene for teleport using VRTK with a Gear VR or Oculus Go controller. This tutorial uses an OVR rig with tracked remote, straight pointer renderer & UI pointer scripts.
Assumptions: You have an Oculus Go or Samsung Gear VR with a compatible Android mobile device & controller. You already have Unity 2017.4.0f1 & VRTK v3.3.0 installed, note that Unity 2018 may not be compatible.
Add VRTK Camera Rig with OVR Remote
Follow these steps to set up your camera rig using VRTK v3.3.0 and Oculus Utilities.
Define Pointer Functionality
Click on the GearVRControllerModel/OculusGoController Model parent object and add the following components:
A. VRTK_PlayArea Cursor (Script)
B. VRTK_StraightPointer Renderer (Script)
Change Tracer & Cursor Visibility to “Always On”
C. VRTK_Pointer (Script)
Change the Selection Button to “Button One Press” for Gear VR or “Trigger Press” for Oculus Go.
Enable “Hold Button to Activate”
Enable “Interact with Objects”
D. VRTK_ControllerEvents (Script)
E. VRTK_ControllerEvents_Listener Example (Script)
If you are using UI elements…
Add the following components to your TrackedRemote parent:
Change the Activation Mode to “Always On”
Set the Activation/Selection Buttons to “Button One Press” for Gear VR or “Trigger Press” for Oculus Go.
Click Method set to Click on Button Up
Next, add the following to your Canvas parent:
VRTK_UI Canvas (Script)
Add Teleport Script
Lastly, create an empty game object in your scene & add the following: VRTK_Basic Teleport (Script)
Are you ready to build for Oculus Go or Gear VR?
Do you need to exclude areas from teleport using Policy List?
I hope this information will make it easier for you to get started with VRTK and Unity. One of the goals of ScenicMentor.com is to help designers learn and work faster, giving them more time to create and more easily share their ideas with the world!
I’d love to hear comments or suggestions. Contact me here.