intersectObjects method
List<Intersection>
intersectObjects(
- List<
Object3D> objects, - bool recursive, [
- List<
Intersection> ? intersects
Implementation
List<Intersection> intersectObjects(List<Object3D> objects, bool recursive, [List<Intersection>? intersects]) {
intersects = intersects ?? List<Intersection>.from([]);
for (var i = 0, l = objects.length; i < l; i++) {
intersectObject4(objects[i], this, intersects, recursive);
}
intersects.sort(ascSort);
return intersects;
}