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.

How do I get my OVRCameraRig to shoot the physics raycaster?

Hi Forum 

I am developing a physics raycaster from my OVRCameraRig i Unity. I have made a script, and if I change the camera to Camera.main the code runs but nothing happens. I want it to shoot the ray from the OVRCameraRig in the OVRPlayerController, so its visible in VR. 
Maybe its just a small thing I have to do to make it shoot from the camerarig, but I dont know how to? Can anyone help me? 
I am not a pro at coding, so please bear with me :) I hope I post it in the right forum
Sign In or Register to comment.