Browse Source

Use the optionalTarget for Ray.closestPointToPoint.

stephomi 12 years ago
parent
commit
000ae09e45
1 changed files with 1 additions and 1 deletions
  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 );
 
 
 		}
 		}