From cdff68940397e32c39a2b95c84ddb28c6b76ef38 Mon Sep 17 00:00:00 2001 From: Lynix Date: Sat, 24 Jan 2015 16:18:06 +0100 Subject: [PATCH] (Ray) Fixed Intersect(Plane, T) method Former-commit-id: 5acfae80d778087a2e2b423d34da8a218a802cd4 --- include/Nazara/Math/Ray.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Nazara/Math/Ray.inl b/include/Nazara/Math/Ray.inl index 035a7bc06..6ee22ad4e 100644 --- a/include/Nazara/Math/Ray.inl +++ b/include/Nazara/Math/Ray.inl @@ -225,7 +225,7 @@ bool NzRay::Intersect(const NzPlane& plane, T* hit) const if (NzNumberEquals(divisor, F(0.0))) return false; // perpendicular - T lambda = -(plane.normal.DotProduct(origin) - plane.distance) / divisor; // The plane is ax+by+cz=d + T lambda = -(plane.normal.DotProduct(origin) + plane.distance) / divisor; // The plane is ax+by+cz=d if (lambda < F(0.0)) return false; // Le plan est derrière le rayon