Open ngokevin opened 8 years ago
That will be amazing :) Any idea of the release date so I can quickly make the change without dealing with official code?
Tried this, but this example code:
` document.querySelector('a-cursor').addEventListener("click", function(event){
console.log("CURSOR CLICK");
console.log(event);
});`
spits the attached output (no 'intersection' property). Any ideas?
I think right now, you have to listen from the intersected entity, rather than from the cursor.
The dev builds of A-Frame support listening on either right now.
On master branch of A-Frame that is about to release, on the cursor click event, you can do
evt.detail.intersection
to get UV coords.