浏览代码

use consistent clipping

AzaezelX 1 年之前
父节点
当前提交
65fe0be037
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/math/mathUtils.cpp

+ 1 - 1
Engine/source/math/mathUtils.cpp

@@ -827,7 +827,7 @@ void mShortestSegmentBetweenLines( const Line &line0, const Line &line1, LineSeg
 
    F32 denom = a*c - b*b;
 
-   if ( denom > -0.001f && denom < 0.001f )
+   if ( denom > -POINT_EPSILON && denom < POINT_EPSILON)
    {
       outSegment->p0 = line0.origin;
       outSegment->p1 = line1.origin + (e/c)*line1.direction;