I have a raycaster-intersection event listener attached to my right laser controller like so:
<a-entity id="rightController" laser-controls="hand: right" raycaster="objects: .collidable; far: 20"></a-entity>
...
rightController.addEventListener("raycaster-intersection", function(e) {
console.log(e);
});
Collidable object example:
<a-sphere class="collidable" color="yellow" radius="5" position="31.617 7.159 -10.258" scale="0.1 0.1 0.1"></a-sphere>
When the raycaster intersects with a .collidable object the event is successfully emitted but I can't find any information on the intersected object from the event variable (e). I really don't want to have to attach events to each of these objects because I'd have like 20 event listeners.
It's like the event output is incomplete...Aframe docs imply the 'els' array should contain what I'm looking for but it's empty. There's also no .getIntersection() function. Any ideas?
