This commit is contained in:
Irlan 2018-07-18 20:58:33 -03:00
parent 7a1d50465c
commit ad7c13005f

View File

@ -681,7 +681,7 @@ void b3Cloth::Solve(float32 dt, const b3Vec3& gravity)
b3ClothSolverDef solverDef;
solverDef.stack = &m_world->m_stackAllocator;
solverDef.particleCapacity = m_particleList.m_count;
solverDef.forceCapacity = m_forceList.m_count + (2 * m_particleList.m_count);
solverDef.forceCapacity = m_forceList.m_count + (1 * m_particleList.m_count);
solverDef.contactCapacity = m_particleList.m_count;
b3ClothSolver solver(solverDef);