Forum Discussion
gomeslaw
7 years agoHonored Guest
Raycast from OVRCameraRig forward INACCURATE
I need make raycast from camera forward, I have tested CenterEyeAnchor,
LeftEyeAnchor and RightEyeAnchor as origin and for the direction I add
an empty object(miraT) in front of the camera and doesnt work
accurately.
LeftEyeAnchor and RightEyeAnchor as origin and for the direction I add
an empty object(miraT) in front of the camera and doesnt work
accurately.
When I do it with a normal camera in Unity I can make it work perfectly
but with OVRCameraRig I don't know how to do it. Sometimes it works
centered, sometimes it doesn't. I can't think of anything else, any idea
is welcome.
my raycast code:
if (Physics.Raycast(camara.position, miraT.position, out RaycastHit
hit, Mathf.Infinity))
hit, Mathf.Infinity))
I'm developing for Oculus Quest Thank you!
2 Replies
Replies have been turned off for this discussion
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
- 2 months ago
- 8 months ago