This commit is contained in:
Irlan Robson 2018-05-16 02:36:42 -03:00 committed by GitHub
parent d99711e749
commit 7e7935c28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;