hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.16k stars 399 forks source link

Event Handling in vanilla threejs ? #274

Closed Makio64 closed 1 year ago

Makio64 commented 1 year ago

How can we access to events handling when using vanillajs or threejs ?

The example shows only the way for a-frame https://hiukim.github.io/mind-ar-js-doc/examples/events-handling

Makio64 commented 1 year ago
const anchor = mindarThree.addAnchor(0)
anchor.onTargetFound = (event)=>{
    console.log(event) // undefined
}