From 7e7935c28a9fae1a2800c9593315be4e112f01ff Mon Sep 17 00:00:00 2001 From: Irlan Robson Date: Wed, 16 May 2018 02:36:42 -0300 Subject: [PATCH] comments --- src/bounce/dynamics/cloth/spring_cloth.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bounce/dynamics/cloth/spring_cloth.cpp b/src/bounce/dynamics/cloth/spring_cloth.cpp index 96d914f..f04d3a8 100644 --- a/src/bounce/dynamics/cloth/spring_cloth.cpp +++ b/src/bounce/dynamics/cloth/spring_cloth.cpp @@ -386,7 +386,7 @@ void b3SpringCloth::UpdateContacts() s1.vertex = m_x[i]; s1.radius = m_r; - // Solve the deepest penetration + // Find the deepest penetration float32 bestSeparation = 0.0f; b3Vec3 bestNormal(0.0f, 0.0f, 0.0f); u32 bestIndex = ~0; @@ -421,7 +421,7 @@ void b3SpringCloth::UpdateContacts() b3Vec3 n = bestNormal; // Update contact manifold - // Here the normal orientation is from the shape 2 (mass) to shape 1 + // Remember the normal orientation is from shape 2 to shape 1 (mass) c->j = bestIndex; c->n = n; c->lockN = true;