- Home /
Question by
sadowlight123 · Jun 17, 2018 at 08:48 PM ·
vroculussamsungandoid
Occulus Vr and Unity
Hello ,
I have made a game and I want to transform it into a VR game . I got the old Samsung Occulus Vr , the one with the touchpad (no controllers) I am trying to do it but I am having a hard time with docuemtation and tutorials as each says different thing that I can't understand.
What I need to do is basically this but in VR:
if (Input.GetMouseButtonDown(0))
{
RaycastHit hit;
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out hit))
{
if (hit.transform.tag == "Mummy")
{
//do stuff here
}
}
}
Any help please?
Comment