Getting Started
VRTK requires a supported VR SDK to be imported into your Unity3d Project.
- Clone this repository
git clone https://github.com/thestonefox/VRTK.git. - Open
VRTKwithin Unity3d. - Add the
VRTK_SDKManagerscript to a GameObject in the scene.
Instructions for using the VR Simulator
- Drag the
VRSimulatorCameraRigprefab from the VRTK/Prefabs into the
scene. - Select the GameObject with the
VRTK_SDKManagerscript attached
to it. - Select
Simulatorfor each of the SDK Choices. - Click the
Auto Populate Linked Objectsbutton to find the
relevant Linked Objects. - Use the Left Alt to switch between mouse look and move a hand.
- Press Tab to switch between left/right hands.
- Hold Left Shift to change from translation to rotation for the hands.
- Hold Left Crtl to switch between X/Y and X/Z axis.
- All above keys can be remapped using the inspector on the
VRSimulatorCameraRigprefab. - Button mapping for the VR control are as follows:
- Grip: Left mouse button
- Trigger: Right mouse button
- Touchpad Press: Q
- Button One: E
- Button Two: R
Instructions for using the SteamVR Unity3d asset
- Import the SteamVR Plugin from the Unity Asset Store.
- Drag the
[CameraRig]prefab from the SteamVR plugin into the scene. - Check that
Virtual Reality Supportedis ticked in theEdit -> Project Settings -> Playermenu. - Ensure that
OpenVRis added in theVirtual Reality SDKslist in theEdit -> Project Settings -> Playermenu. - Select the GameObject with the
VRTK_SDKManagerscript attached to it. - Select
Steam VRfor each of the SDK Choices. - Click the
Auto Populate Linked Objectsbutton to find the relevant Linked Objects. - Optionally, browse the
Examplesscenes for example usage of the scripts.
Instructions for using the Oculus Utilities Unity3d package
- Download the Oculus Utilities from the Oculus developer website.
- Import the
OculusUtilities.unitypackageinto the project. - Drag the
OVRCameraRigprefab from the Oculus package into the scene. - Check that
Virtual Reality Supportedis ticked in theEdit -> Project Settings -> Playermenu. - Ensure that
Oculusis added in theVirtual Reality SDKslist in theEdit -> Project Settings -> Playermenu. - Select the GameObject with the
VRTK_SDKManagerscript attached to it. - Select
Oculus VRfor each of the SDK Choices. - Click the
Auto Populate Linked Objectsbutton to find the relevant Linked Objects.
Updated less than a minute ago
