Explorar el Código

Use the optionalTarget for Ray.closestPointToPoint.

stephomi hace 12 años
padre
commit
000ae09e45
Se han modificado 1 ficheros con 1 adiciones y 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 );
 
 		}