Forum Discussion
nigrin
13 years agoExplorer
[TIP] Detecting where the player looks at
Hi guys, we came across this for our vrjam game "Sorcerer's Wrath", where the player fights things by just looking at them. Here is a quick blog post how we did this, I have not seen this specif...
DarkJames
13 years agoHonored Guest
Another technique is to use dot product between to Vector3's. I found the information on it here http://forum.unity3d.com/threads/173707-Using-Vector3-Dot-for-Direction-Facing-Calculation
I found that 0.72f < x <= 1 seemed to fit the Oculus field of vision to determine if it was in view or not. That was with the B cups, I believe the other cups would change the number you needed to use.
I found that 0.72f < x <= 1 seemed to fit the Oculus field of vision to determine if it was in view or not. That was with the B cups, I believe the other cups would change the number you needed to use.
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
- 3 years ago
- 9 months ago