Fixed intersectRayPlane returns true in parallel case #578
This commit is contained in:
@@ -14,7 +14,7 @@ namespace glm
|
||||
typename genType::value_type d = glm::dot(dir, planeNormal);
|
||||
typename genType::value_type Epsilon = std::numeric_limits<typename genType::value_type>::epsilon();
|
||||
|
||||
if(d < Epsilon)
|
||||
if(d < -Epsilon)
|
||||
{
|
||||
intersectionDistance = glm::dot(planeOrig - orig, planeNormal) / d;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user