Download

cursor line trace with the camera refactor

I have some troubles getting a simple line trace for cursor hit detection to work on the gear VR.

i have a cursor plane attached to the camera, which sticks perfectly thanks to the camera refactor (4.11p5) but…

when i create a line trace from the camera position and direction vector i get the hit slightly offset from the object my cursor is over…

which makes me wonder if there is still some obscure offset somewhere in the hmd head model on gear VR ?

I placed my cursor closer to the camera and now i clearly see an offset, it is not in the middle but lower, while it is attached right in front of the camera, so i guess the camera refactor isn’t quite ready yet for gearVR…