A simple set of scripts for fly navigation in Unity based on VRTK library.
Unity 2017 2.0f or above VRTK plugin 3.2
-
Attach controller_fly.cs onto one of your VRTK controller script alias (either left or right hand).
-
On your controller script alias, choose if you are using "simulator or not", and choose if you are using "lefthand or not".
-
Link SteamVR CameraRig object and VRSimulatorCameraRig object to your controller_fly script.
-
Link PlayArea script alias object to the script.
-
On your PlayArea script alias object, attach Collision_detect.cs onto it.
-
Add "VRTK_HeadsetCollision" script to PlayArea script alias.