|
@@ -99,7 +99,7 @@
|
|
|
|
|
|
if ( material === undefined ) continue;
|
|
if ( material === undefined ) continue;
|
|
|
|
|
|
- facePlane.setFromNormalAndCoplanarPoint( face.normal, face.centroid );
|
|
|
|
|
|
+ facePlane.setFromNormalAndCoplanarPoint( face.normal, vertices[face.a] );
|
|
|
|
|
|
var planeDistance = localRay.distanceToPlane( facePlane );
|
|
var planeDistance = localRay.distanceToPlane( facePlane );
|
|
|
|
|