0

I want to use raycaster component in <a-cursor> entity to intersect some cubes.
I set the objects property like '#box' (my cube's id), but the cursor still intersects all element.
I step into the raycaster source code, and the data.objects is '' .
So, I wonder if I set the property in a wrong way?

George Kagan
  • 5,913
  • 8
  • 46
  • 50
Craig.Li
  • 1,336
  • 10
  • 17

1 Answers1

0

There was a bug in A-Frame with dependency components. It's been fixed in the Dev Builds: https://github.com/aframevr/aframe/tree/master/dist#dev-builds and will be released with 0.4.0.

A workaround is to put the raycaster component before the cursor:

<a-entity raycaster="..." cursor="..."></a-entity>
ngokevin
  • 12,980
  • 2
  • 38
  • 84