Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Futuristichub's avatar
Futuristichub
Honored Guest
12 years ago

Move Camera with Head Movement

Hey everyone. I am in first person mode and I'd like to be able to turn my head and the camera turn with it in first person. Basically as if you were in a Helmet and the helmet can move with the camera but slower so it gives you the feel of being inside a helmet. . Do you have any idea how I can do this, what code is needed and where to put it?

I am look for the EXACT same effect like this demo here below
viewtopic.php?f=29&t=13512

struggling with this... Thanks guys!

2 Replies

Replies have been turned off for this discussion
  • look up Oculus Rift sensorfusion, that will allow you to do that. Specifically a function called GetDeviceOrientationPosition or something just like that.
  • Just make the helmet and use Vector3.MoveTowards and Quaternion.Slerp to move and rotate it towards the position and rotation of the median point between Oculus cameras. You may use Oculus functions to get position and rotation if you wish, but they aren't really needed.