Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
6 years ago

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
Replies have been turned off for this discussion