The starting position will be located at (0,0,0) in World space. The ZEDCamera prefab is the easiest way to add positional tracking in a virtual environment. To use, simply drag and drop the prefab into your scene.īy adding the ZEDCamera as a father of Unity main camera, you will have direct control of the virtual camera pose by head tracking. Using ZED Prefab to move the virtual camera Make sure your ZED is connected, and that its line of sight is not obstructed. Run the demo scene, move your ZED around and watch the virtual camera reproduce the same movement in Unity. You can now launch the ZEDTrackingScene sample. To import the ZED package in Unity, you have to go in Assets → Import package → Custom package.Īfter selecting the ZEDCamera.unitypackage, make sure all the boxes are checked and then click Import.
#Trinus vr head tracking full#
By using the ZED as an add-on camera to a VR headset, desktop and mobile HMDs such as Gear VR can now track your position in space and offer great experiences with full freedom of movement. Positional tracking is what makes the HTC Vive and Oculus Rift so immersive.
#Trinus vr head tracking how to#
How to Add Position and Head Tracking in Unity for VR