MCPcopy Index your code
hub / github.com/mrdoob/three.js / intersectObjectWithRay

Function intersectObjectWithRay

examples/jsm/controls/TransformControls.js:1072–1088  ·  view source on GitHub ↗
( object, raycaster, includeInvisible )

Source from the content-addressed store, hash-verified

1070}
1071
1072function 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

Callers 3

pointerHoverMethod · 0.85
pointerDownMethod · 0.85
pointerMoveMethod · 0.85

Calls 1

intersectObjectMethod · 0.45

Tested by

no test coverage detected