2
0
Эх сурвалжийг харах

Use the optionalTarget for Ray.closestPointToPoint.

stephomi 12 жил өмнө
parent
commit
000ae09e45
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/math/Ray.js

+ 1 - 1
src/math/Ray.js

@@ -61,7 +61,7 @@ THREE.Ray.prototype = {
 
 
 		if ( directionDistance < 0 ) {
 		if ( directionDistance < 0 ) {
 
 
-			return this.origin.clone();
+			return result.copy( this.origin );
 
 
 		}
 		}