erichlof 11 سال پیش
والد
کامیت
1d1279b9b2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/math/Ray.js

+ 1 - 1
src/math/Ray.js

@@ -248,7 +248,7 @@ THREE.Ray.prototype = {
 			// test to see if t0 is behind the ray:
 			// if it is, the ray is inside the sphere, so return the second exit point scaled by t1,
 			// in order to always return an intersect point that is in front of the ray.
-			if (t0 < 0) return this.at( t1, optionalTarget );
+			if ( t0 < 0 ) return this.at( t1, optionalTarget );
 
 			// else t0 is in front of the ray, so return the first collision point scaled by t0 
 			return this.at( t0, optionalTarget );