events #66

Closed
opened 2022-12-04 15:31:20 +00:00 by utopiah · 2 comments
Owner

e.g target pinched, can be used for function applied on next pinch eg delete

e.g target pinched, can be used for function applied on next pinch eg delete
utopiah added the core interactions label 2022-12-07 07:02:43 +00:00
Author
Owner

See d71c932e50 as example to generalize, namely :

  • emit() event on frequent meaningful actions, e.g after entity released
  • register new component with an event listener for that new event
  • add that component to entity that will be the target of that event
See https://git.benetou.fr/utopiah/text-code-xr-engine/commit/d71c932e5064922f58af8944b3ec0c49642c6bae as example to generalize, namely : * `emit()` event on frequent meaningful actions, e.g after entity released * register new component with an event listener for that new event * add that component to entity that will be the target of that event
Author
Owner

Events might also be a good maybe to test interactivity related code without necessarily having to put the headset on. One could emit the event instead, knowing that the properties, e.g position of pinch, would not be correct.

Events might also be a good maybe to test interactivity related code without necessarily having to put the headset on. One could emit the event instead, knowing that the properties, e.g position of pinch, would not be correct.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: utopiah/text-code-xr-engine#66