diff --git a/tests/physics/src/MeshInfoTests.cpp b/tests/physics/src/MeshInfoTests.cpp index 58c38017a6..fa841f3930 100644 --- a/tests/physics/src/MeshInfoTests.cpp +++ b/tests/physics/src/MeshInfoTests.cpp @@ -115,7 +115,7 @@ void MeshInfoTests::testWithTetrahedronAsMesh(){ float inertia_cc = 11996.20119f; std::cout << std::setprecision(12); vector vertices = { p0, p1, p2, p3 }; - vector triangles = { 0, 1, 2, 0, 3, 1, 1, 3, 2, 0, 2, 3 }; //clockwise direction + vector triangles = { 0, 2, 1, 0, 3, 2, 0, 1, 3, 1, 2, 3 }; meshinfo::MeshInfo massProp(&vertices, &triangles); vector volumeAndInertia = massProp.computeMassProperties(); std::cout << volumeAndInertia[0] << " " << volumeAndInertia[1] << " " << volumeAndInertia[2]