diff options
-rwxr-xr-x | js/helper-classes/3D/StageLine.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/helper-classes/3D/StageLine.js b/js/helper-classes/3D/StageLine.js index 38bd80ef..f9abc5ce 100755 --- a/js/helper-classes/3D/StageLine.js +++ b/js/helper-classes/3D/StageLine.js | |||
@@ -273,7 +273,7 @@ var StageLine = exports.StageLine = Object.create(Object.prototype, { | |||
273 | lVec = vecUtils.vecSubtract(3, lPt1, lPt0); | 273 | lVec = vecUtils.vecSubtract(3, lPt1, lPt0); |
274 | 274 | ||
275 | var backFacing = plane.isBackFacing(); | 275 | var backFacing = plane.isBackFacing(); |
276 | var bNormal = vecUtils.vecCross(3, planeEq, bVec); | 276 | var bNormal = vecUtils.vecCross(3, [0,0,1], bVec); |
277 | var dot = vecUtils.vecDot(3, bNormal, lVec); | 277 | var dot = vecUtils.vecDot(3, bNormal, lVec); |
278 | if ((!backFacing && (MathUtils.fpSign(dot) < 0)) || (backFacing && (MathUtils.fpSign(dot) > 0))) | 278 | if ((!backFacing && (MathUtils.fpSign(dot) < 0)) || (backFacing && (MathUtils.fpSign(dot) > 0))) |
279 | { | 279 | { |