This repository has been archived by the owner on Feb 10, 2023. It is now read-only.
Replies: 1 comment
-
Found it! Objects can implement event handler for pointermissed event. The raycaster dispatches this event to any listening object when nothing is hit. (pointermissed)="missed()" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been digging through the NGT event system. It includes a default ray caster that dispatches events to the appropriate object listeners.
I've been working on an in-scene user interface that has popups.
In the browser, if you click outside the popup it will close. However, the ray caster doesn't generate any events unless you click on something in the scene.
Is there any event that I can listen on when the ray caster hits nothing? If not, can a 'nothinghit' event just be forwarded to the scene object?
If you support the idea, can you provide some hints on where I could make the code change?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions