piotr.karkocha Posted May 8, 2019 Share Posted May 8, 2019 Hello, I have made a project based on the Vr Sample in 2.8 SDK. When in Vr, the white gui cursor which points from the right oculus controller when the gui is active, is now rotated 180 degree around the z axis ( pointing backwards to the player instead of pointing forward). I was looking for it, but cant find it - where can I reset the angle of its rotation? Thanks Link to comment
karpych11 Posted May 13, 2019 Share Posted May 13, 2019 Hi Piotr, To change the direction of the pointer, you need to fix one line in the source code. Open the file named VRPlayerVR.cpp and find the line number 755. Replace it with: Vec3 p1 = p0 + Vec3(normalize(getDirectionNZ(m) + getDirectionY(m))) * 10.0f; or: Vec3 p1 = p0 + Vec3(getDirectionY(m))) * 10.0f; for directions as in the first and second image respectively. Link to comment
piotr.karkocha Posted May 13, 2019 Author Share Posted May 13, 2019 Hi Karpych, thanks a lot! Link to comment
Recommended Posts