Forum Discussion
Lawdee
9 years agoHonored Guest
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!
Thanks it advance!
2 Replies
Replies have been turned off for this discussion
- vrdavebOculus StaffYou 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/
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 2 years ago