diff --git a/include/zeus/CMRay.hpp b/include/zeus/CMRay.hpp index 195e1b3..9487aae 100644 --- a/include/zeus/CMRay.hpp +++ b/include/zeus/CMRay.hpp @@ -11,7 +11,7 @@ struct CMRay : start(start), length(len), invLength(1.f / len), dir(dirin) { end = start + (len * dirin); - delta = dirin - start; + delta = end - start; } CMRay(const CVector3f& start, const CVector3f& end, float len, float invLen)