Hi,
Because there’s actualy no position tracking on mobile VR, i’m trying to fake leaning movement with camera tilt.
In reality, leaning means rotate your view if you keep your neck straight relative to your body so it works.
For now I did this :
“Camera” is a child of “Camera root” which is a child of the DefaultScene of my Pawn. I’m getting the roll world rotation of my camera ( camera roll when you tilt your head in VR) and use this value to change my “X location”.
And it works, it’s not perfect but it works.
The problem is that it works only when i’m looking in positive Y world direction because the “x location” is relative to the world and not relative to my pawn. So when i’m looking in X world direction and roll the camera, i’m going forward and backward instead of leaning
I need help to make it relative to my pawn and not the world.
