Forum Discussion

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

Forcing a predefined OVRPlayerController view/rotation

Hello guys,

I am building a script in which I am changing the location of the user (like predefined points of view in the scene).
No problem to set the position of the OVRPlayerController, but I am struggling with the rotation...

What I want to achieve is really to force the user to a specific camera view, so that after updating the position/location, the camera is turned toward a specific item.
I tried setting the OVRPlayController roration properties, but that does not work, as it is still reflecting the current Rift rotation.
I tried also setting the OVRCameraController rotation, but that does not work. I finally tried using the setYRotation function, no luck either...

Could you advice on how to update the OVRPlayerController rotation so that the user is facing the specific direction (probably ressting the current rotation values)

Thank you

12 Replies

Replies have been turned off for this discussion