Add support for target motion and slip/cfm for both friction directions.

It can be handy for effects such as powered conveyor belt effect or sideways slipping tyre friction.
This commit is contained in:
erwin.coumans
2009-09-18 07:48:15 +00:00
parent 49474da938
commit da4a1b14b5
3 changed files with 19 additions and 6 deletions

View File

@@ -34,6 +34,10 @@ class btManifoldPoint
m_lateralFrictionInitialized(false),
m_appliedImpulseLateral1(0.f),
m_appliedImpulseLateral2(0.f),
m_contactMotion1(0.f),
m_contactMotion2(0.f),
m_contactCFM1(0.f),
m_contactCFM2(0.f),
m_lifeTime(0)
{
}
@@ -52,6 +56,10 @@ class btManifoldPoint
m_lateralFrictionInitialized(false),
m_appliedImpulseLateral1(0.f),
m_appliedImpulseLateral2(0.f),
m_contactMotion1(0.f),
m_contactMotion2(0.f),
m_contactCFM1(0.f),
m_contactCFM2(0.f),
m_lifeTime(0)
{
@@ -83,6 +91,11 @@ class btManifoldPoint
bool m_lateralFrictionInitialized;
btScalar m_appliedImpulseLateral1;
btScalar m_appliedImpulseLateral2;
btScalar m_contactMotion1;
btScalar m_contactMotion2;
btScalar m_contactCFM1;
btScalar m_contactCFM2;
int m_lifeTime;//lifetime of the contactpoint in frames
btVector3 m_lateralFrictionDir1;