How to access the Raycast gameobject from the Gear VR controller?

Asked

Viewed 30 times

0

I want to know how I can activate the red laser of Gear VR and how I can know information of what the laser is playing ?

  • Which laser? Is it a transmitter of the equipment itself? If so, have you seen the documentation? Does the Unity SDK (which you’re probably already using) have anything? Provide a little more detail, if it’s not difficult to get someone to help you.

  • It would be the raycast of the control, if there were any native with the Oculus sdk.

  • Does the Oculus SDK not have an option for this activation? Edit the question and provide more details, to increase the chances that someone can help you. :)

  • Usually there are Sdks that give you everything ready, but if you do not have this functionality you will have to create a raycast from the forward control or affiliate an empty gameobject with the z axis pointed to where you want and in it make the raycast forward, can call in the same update, and to know what is playing you can use the hit.transform.gameobject, in this case the hit is what Physics.Raycast will return (a Raycasthit). The raycast is not visible, you will have to draw a line, using the same point and direction as the raycast, and its size will be the difference between the starting point and the hit

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.