( object, raycaster, includeInvisible )
| 1070 | } |
| 1071 | |
| 1072 | function intersectObjectWithRay( object, raycaster, includeInvisible ) { |
| 1073 | |
| 1074 | const allIntersections = raycaster.intersectObject( object, true ); |
| 1075 | |
| 1076 | for ( let i = 0; i < allIntersections.length; i ++ ) { |
| 1077 | |
| 1078 | if ( allIntersections[ i ].object.visible || includeInvisible ) { |
| 1079 | |
| 1080 | return allIntersections[ i ]; |
| 1081 | |
| 1082 | } |
| 1083 | |
| 1084 | } |
| 1085 | |
| 1086 | return false; |
| 1087 | |
| 1088 | } |
| 1089 | |
| 1090 | // |
| 1091 |
no test coverage detected