optimization, friction force
This commit is contained in:
parent
3d3d9f0910
commit
4a5178feaa
@ -79,9 +79,9 @@ void b3SpringForce::Apply(const b3ClothSolverData* data)
|
|||||||
|
|
||||||
if (L >= m_L0)
|
if (L >= m_L0)
|
||||||
{
|
{
|
||||||
|
// Apply tension
|
||||||
b3Vec3 n = dx / L;
|
b3Vec3 n = dx / L;
|
||||||
|
|
||||||
// Apply tension
|
|
||||||
m_f += -m_ks * (L - m_L0) * n;
|
m_f += -m_ks * (L - m_L0) * n;
|
||||||
|
|
||||||
// Jacobian
|
// Jacobian
|
||||||
|
Loading…
x
Reference in New Issue
Block a user