Forum Discussion

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

SDK 0.2.4 - OVRPlayer doesn't rotate OVRCameras

Hi.
Since I updated to 0.2.4, I started having really random problems with OVRCameraController rotations.

I have my OVRPlayerController with the OVRCameraControlled as a child - I'm rotating the OVRPlayerController via a simple Rotate() function.

Now as of previous versions, setting up Follow Orientation to follow OVRPlayerController would work - as in, my cameras would rotate with my playercontroller. This is not the case anymore, or rather, it's not the case 90% of the time. It happens to work sometimes when I restart my PC from scratch (not even restarting Unity works).

I tried telling the cameraController to follow the ForwardDirection but it doesn't rotate with my playercontroller neither, despite being a child of it - looks like its rotations are being overridden by OVRPlayerController script every frame.

Any clue? Do I have to change my rotation logic (which is a transform.Rotate() function affecting OVRPlayerController) as of 0.2.4?

Thanks.
Replies have been turned off for this discussion