From 88769bded03bad4ab3dc5d440200cbe68d694faa Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 18 Oct 2018 09:44:02 -1000 Subject: [PATCH] Fix CMRay constructor issue --- include/zeus/CMRay.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)