From 63833621a046d58e95a99b73ed35e2beb1ed7658 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Tue, 12 Sep 2017 23:25:21 +0200 Subject: [PATCH] Fix issue with triangle shape normal computation --- src/collision/shapes/TriangleShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collision/shapes/TriangleShape.cpp b/src/collision/shapes/TriangleShape.cpp index 48baa225..254bc5a1 100644 --- a/src/collision/shapes/TriangleShape.cpp +++ b/src/collision/shapes/TriangleShape.cpp @@ -52,7 +52,7 @@ TriangleShape::TriangleShape(const Vector3& point1, const Vector3& point2, const mPoints[2] = point3; // Compute the triangle normal - mNormal = (point3 - point1).cross(point2 - point1); + mNormal = (point2 - point1).cross(point3 - point1); mNormal.normalize(); mVerticesNormals[0] = verticesNormals[0];