VR Roomscale rotation

wonka007
Sat, 28 Dec 2019 16:33:23 +0000
XR Development

Hi,
I am looking for a solution to my problem with relative rotation. I am trying to reproduce camera rotation as in Pavlov VR where you use your thumbstick X axis to rotate around. I tried to add relative rotation to the camera in my pawn, but that did nothing. I think it is caused HMD rewriting location and rotation every frame. So I didn’t hesitate and try to rotate VR origin. And this worked. But after I make a few steps and get out of the center of the room I found out that the camera wasn’t rotating but only the origin rotate which create this weird drifting movement which causes a bit headache. I will add an image so you can understand it better.

The green arrow indicates the facing of the player.

Is there some solution for this situation or I will have to live with it.

I would be glad for any help.

3 posts - 1 participant