events #66

Closed
opened 1 year ago by utopiah · 2 comments
utopiah commented 1 year ago
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 1 year ago
Poster
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
Poster
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.
utopiah closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: utopiah/text-code-xr-engine#66
Loading…
There is no content yet.