Closed Walkramis closed 3 years ago
Hey @Walkramis, can you submit a PR with your code changes so we can run some tests on it and see if anything breaks?
Sure thing! I have now added a pull request at https://github.com/microsoft/MixedRealityToolkit-Unity/pull/10127 Let me know if you need anything else :)
Describe the bug
When having two objects with colliders right next two each other, one with EyeTrackingTarget and one without. If eye gaze is passing between these two directly (meaning eye gaze raycast is hitting a collider each frame) OnLookAway will not trigger. It will only trigger when looking at another object with EyeTrackingTarget or when the eye gaze raycast is not hitting anything.
To reproduce
Steps to reproduce the behavior:
From Looking at the code it seems LookedAtTarget is not updated if a collider is hit but LookedAtEyetarget is null (from line 263):
Expected behavior
Expected behavior would be that OnLookAway would trigger even when gaze passes directly from object with EyeTrackingTarget to one without. Code suggestion change that fixed the issue for me.
Changed:
To:
Screenshots
Current behaviour:
Expected:
Your setup (please complete the following information)
Target platform (please complete the following information)
Additional context