enable predictive contact constraints, see BasicDemo

This commit is contained in:
erwin.coumans
2011-03-05 03:01:44 +00:00
parent a99d2679bd
commit 7a9c349a8c
7 changed files with 174 additions and 48 deletions

View File

@@ -199,7 +199,12 @@ public:
bool validContactDistance(const btManifoldPoint& pt) const
{
return pt.m_distance1 <= getContactBreakingThreshold();
if (pt.m_lifeTime >1)
{
return pt.m_distance1 <= getContactBreakingThreshold();
}
return pt.m_distance1 <= getContactProcessingThreshold();
}
/// calculated new worldspace coordinates and depth, and reject points that exceed the collision margin
void refreshContactPoints( const btTransform& trA,const btTransform& trB);