set applied impulse to zero, when replacing an existing contact point

This commit is contained in:
ejcoumans
2008-02-07 08:18:26 +00:00
parent 661176bfed
commit ff3b7f0c0f

View File

@@ -138,7 +138,7 @@ public:
#define MAINTAIN_PERSISTENCY 1
#ifdef MAINTAIN_PERSISTENCY
int lifeTime = m_pointCache[insertIndex].getLifeTime();
btScalar appliedImpulse = m_pointCache[insertIndex].m_appliedImpulse;
btScalar appliedImpulse = 0.f;//m_pointCache[insertIndex].m_appliedImpulse;
btAssert(lifeTime>=0);
void* cache = m_pointCache[insertIndex].m_userPersistentData;