Просмотр исходного кода

Use the optionalTarget for Ray.closestPointToPoint.

stephomi 12 лет назад
Родитель
Сommit
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 ) {
 
-			return this.origin.clone();
+			return result.copy( this.origin );
 
 		}