|
@@ -248,7 +248,7 @@ THREE.Ray.prototype = {
|
|
// test to see if t0 is behind the ray:
|
|
// 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,
|
|
// 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.
|
|
// 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
|
|
// else t0 is in front of the ray, so return the first collision point scaled by t0
|
|
return this.at( t0, optionalTarget );
|
|
return this.at( t0, optionalTarget );
|