Forum Discussion
enzedda
11 years agoExplorer
Using the mouse buttons
Greetings to you all. My first post. I have my dk2 and i have free Unity. I have setup mydk2 and it is great. I have placed the Oculus Unity4 integration into a simple new Unity scene and all views...
enzedda
11 years agoExplorer
"virror" wrote:
Raycasting is pretty straight forward really, you just send a ray from a certain point in a certain direction and if the ray hits something you can get hold of the collided object and then do whatever you want with it. Just google "Unity raycast example" or whatever and you should get loads of good results. For getting the mouse press you should look at "Input.GetKey()" in the documentation, it returns true or false if a button is pressed or not and you can then send a raycast if you detect a button press.
Thanks virror,
I'll be doing some looking at those tutes!
I can use getkey no trobs even with the unity integration but I can't use the mouse functions (yet) with the integration.
I didn't realise that this was normal with the Rift.
But I do now,I guess.
So this raycasting idea is something I will follow on with.
Thanks to all.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago