Calculate multiple contact points (for convex-convex and convex-plane) when less then 3 points exist in the persistent manifold.

Uses the normal pertubation method, described by Gino van den Bergen:  http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=4&t=288&p=888#p888
Made btRigidBody::getInvInertiaDiagLocal const, thanks to abhikp (http://code.google.com/p/bullet/issues/detail?id=183 )
This commit is contained in:
erwin.coumans
2009-02-03 00:54:01 +00:00
parent bcbe730471
commit 0754876d77
7 changed files with 145 additions and 30 deletions

View File

@@ -243,7 +243,7 @@ public:
return m_totalTorque;
};
const btVector3& getInvInertiaDiagLocal()
const btVector3& getInvInertiaDiagLocal() const
{
return m_invInertiaLocal;
};