Skip to main content
New Participant
May 11, 2016

Control object by head tracking

Hi, I'm working on a little game for college and I'm fairly new to Unity and development for VR. I want to be able to grab an object and move it around by means of head tracking. I've found a thread about this but that one was from 2013. I've used a script that picks up an object and moves it around, but it just depends on the mouse movement, not the headset movement. I'm using a DK2 and Unity 5.3.4p1

Thanks it advance!
This topic has been closed for replies.

2 replies

Inspiring
May 11, 2016
You could use OVRCameraRig.centerEyeAnchor.forward and Physics.Raycast to do this in a script. Check out our sample framework at https://developer.oculus.com/downloads/game-engines/1.3.0/Oculus_Sample_Framework_for_Unity_5_Project/
New Participant
June 13, 2016