Raycast from OVRCameraRig forward INACCURATE — Oculus
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Raycast from OVRCameraRig forward INACCURATE

gomeslawgomeslaw Posts: 2
NerveGear
edited September 6 in Unity Development
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.

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))

I'm developing for Oculus Quest Thank you!
Tagged:

Comments

  • gomeslawgomeslaw Posts: 2
    NerveGear
    I have solved it, whoever needs the solution, can write me a private and I will help him.

  • MikeFMikeF Posts: 676
    Neo
    It would be great if you could post your solution publicly so that anyone in the future running across this problem can benefit from it :)
Sign In or Register to comment.