Explorar o código

Use the optionalTarget for Ray.closestPointToPoint.

stephomi %!s(int64=12) %!d(string=hai) anos
pai
achega
000ae09e45
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/math/Ray.js

+ 1 - 1
src/math/Ray.js

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