Forum Discussion

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

Make camera stick to one position

I'm making a game where the player is stationary. I want the player to be able to look around, but not move their head in the game. So if they're sitting down looking at the center of a dart board, and then stand up, they should still be looking at the center of the dart board. And even if they moved around outside the game, their head would still be at the same location in the game. How can I accomplish this? Which Ovr* scripts should I study closer?

Maybe relevant: I have a LocalAvatarWithGrab as a child of a GameObject with a Rigidbody. I move the Rigidbody by using my own script.

1 Reply

Replies have been turned off for this discussion
  • jurip's avatar
    jurip
    Honored Guest
    Disabling "Use position tracking" on OVRManager sort of works. However, now I get another problem: If I start seated and then stand up, the hands are raised to eye level. If I recenter the hands are positioned correctly again. And if I sit down then, the hands end up by my feet. Any suggestions?