bugfix
This commit is contained in:
parent
246072f2d3
commit
256ea14327
@ -406,20 +406,22 @@ void b3SpringCloth::UpdateContacts()
|
|||||||
c->Ft1 = 0.0f;
|
c->Ft1 = 0.0f;
|
||||||
c->Ft2 = 0.0f;
|
c->Ft2 = 0.0f;
|
||||||
c->lockN = true;
|
c->lockN = true;
|
||||||
|
c->lockT1 = false;
|
||||||
|
c->lockT2 = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if B3_CLOTH_FRICTION == 1
|
#if B3_CLOTH_FRICTION == 1
|
||||||
|
|
||||||
// Apply friction impulses
|
// Apply friction impulses
|
||||||
|
|
||||||
// Note without a friction force, the tangential acceleration won't be
|
|
||||||
// removed.
|
|
||||||
|
|
||||||
// Relative velocity
|
// Relative velocity
|
||||||
b3Vec3 dv = m_v[i];
|
b3Vec3 dv = m_v[i];
|
||||||
|
|
||||||
b3MakeTangents(c->t1, c->t2, dv, n);
|
b3MakeTangents(c->t1, c->t2, dv, n);
|
||||||
|
|
||||||
|
// Note without a friction force, the tangential acceleration won't be
|
||||||
|
// removed.
|
||||||
|
|
||||||
// Coefficients of friction for the solid
|
// Coefficients of friction for the solid
|
||||||
const float32 uk = shape->GetFriction();
|
const float32 uk = shape->GetFriction();
|
||||||
const float32 us = 2.0f * uk;
|
const float32 us = 2.0f * uk;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user