Hello once again,
when I change the raytracer from
var intersects = raycaster.intersectObject( scene, true );
( which yields results )
to
var intersects = raycaster.intersectObject( objectsarray, true );
I get this error- message “object.layers is undefined”.
The objectsarray- array is populated at the same time the object is added to the scene.
scene.add( object );
objectsarray.push( object );
Even
var intersects = raycaster.intersectObject( scene.children, true );
gets the same error.
Please, telle me what I am doing wrong.
BTW:
The objects I would like to be seperately raycasted are animated Mixamo characters.