Tagged: eye-tracking, Unity
- This topic has 5 replies, 2 voices, and was last updated 1 year, 10 months ago by Grant [Tobii].
- 28/04/2021 at 12:42 #20236
Hello, I have made this scene in order to test which cube recieve the focus. If I look at the back cube, the raycast hits the front cube collider and the front cube receives focus, but the back cube no. Is there any way to get all the items the raycast collide with so I cant filter which one I am looking at?
28/04/2021 at 12:47 #20238
Hi @moreno, thanks for getting in touch. Please specify exactly what Tobii Tracker and SDK Version and Bindings you are working with please. Thereafter, we will be best placed to help you out. Best Wishes.28/04/2021 at 13:09 #20241
Oh yes, sorry. I am using the HTC VIVE PRO EYE hardware, SRanipal SDK 126.96.36.199 and TObiiXRSDK 188.8.131.5203/05/2021 at 11:23 #20281
Hi @moreno, thanks for your patience whilst we investigated this matter. Unfortunately, there is not a straight forward way to look “through” all objects in a gaze direction. With regard to the Tobii G20M, this is not a raycast, but rather returns a list of objects in order of likeliness that the user is looking at them.
Our current version does not support looking through transparent objects with the existing release, however we have logged your request for consideration in a future release. However, you can try to use Unity apis to get that raycast through (https://docs.unity3d.com/ScriptReference/Physics.RaycastAll.html).10/05/2021 at 09:52 #20322
Perfect, thanks!11/05/2021 at 12:20 #20338
Thanks for your understanding, do try it out and let us know how you get on. Best Wishes.
- You must be logged in to reply to this topic.