intersectObject4 method
void
intersectObject4(
- Object3D object,
- Raycaster raycaster,
- List<
Intersection> intersects, - bool recursive,
Implementation
void intersectObject4(Object3D object, Raycaster raycaster, List<Intersection> intersects, bool recursive) {
if (object.layers.test(raycaster.layers)) {
object.raycast(raycaster, intersects);
}
if (recursive == true) {
final children = object.children;
for (int i = 0, l = children.length; i < l; i++) {
intersectObject4(children[i], raycaster, intersects, true);
}
}
}