optimization, friction force

This commit is contained in:
Irlan 2018-06-28 20:00:44 -03:00
parent 3d3d9f0910
commit 4a5178feaa

View File

@ -79,9 +79,9 @@ void b3SpringForce::Apply(const b3ClothSolverData* data)
if (L >= m_L0)
{
// Apply tension
b3Vec3 n = dx / L;
// Apply tension
m_f += -m_ks * (L - m_L0) * n;
// Jacobian