Forum Discussion
TagoWill
10 years agoHonored Guest
Camera position
Hi,
I have the unity 5.1.2f1 and the Oculus Rift DK2.
When the oculus is off, i can retrieve the Camera.transform.forward vector.
But when i turn on the Oculus, the forward vector stays 0. It only changes when i move the mouse.
I'm using the same camera and i can see all the movements correctly with the oculus on.
What can I do to have the forward axis values moving with the oculus?
Thank you.
I have the unity 5.1.2f1 and the Oculus Rift DK2.
When the oculus is off, i can retrieve the Camera.transform.forward vector.
But when i turn on the Oculus, the forward vector stays 0. It only changes when i move the mouse.
I'm using the same camera and i can see all the movements correctly with the oculus on.
What can I do to have the forward axis values moving with the oculus?
Thank you.
2 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionAre you using the OVRPlayerController?
I have some code here for a spectator camera, and transform.forward works OK.
viewtopic.php?f=37&t=24460#p285046
Maybe that will give you some ideas. - TagoWillHonored GuestSorry.
I found out what was my problem.
The mouse movement script was overriding the oculus movements. :lol:
That's why the forward wasn't giving me any value.
Thank you for the reply. ;)
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
- 8 months ago
- 2 years ago