Forum Discussion
Metagen
11 years agoHonored Guest
Oculus Distorts Raycast
So essentially I'm creating an on-rails first person shooter using the Oculus and Leap Motion. Adding the Oculus causes the raycast that controls the hit detection to veer off target. I've found a c...
owenwp
11 years agoExpert Protege
You should avoid doing math in screen space, because it doesn't meaningfully correlate to a stereoscopic view. Try mapping your leap motion data into 3D space somewhere in front of the player (and this should probably be independent of where the player is looking), then do your raycast in 3D space.
It is very important in VR to think of UI in terms of positioning things in space, rather than plotting points on a screen, because if the optics are done right then the user isn't even aware of the screen's existence.
It is very important in VR to think of UI in terms of positioning things in space, rather than plotting points on a screen, because if the optics are done right then the user isn't even aware of the screen's existence.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 10 months ago
- 1 month ago
- 1 year ago