Home Forums Unity SDK Get all items that could be on focus

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #20236
    Jesús
    Participant

    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?

    Thanks.
    Scene

    #20238
    Grant [Tobii]
    Keymaster

    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.

    #20241
    Jesús
    Participant

    Oh yes, sorry. I am using the HTC VIVE PRO EYE hardware, SRanipal SDK 1.3.2.0 and TObiiXRSDK 2.1.1.177

    #20281
    Grant [Tobii]
    Keymaster

    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).

    #20322
    Jesús
    Participant

    Perfect, thanks!

    #20338
    Grant [Tobii]
    Keymaster

    Thanks for your understanding, do try it out and let us know how you get on. Best Wishes.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.