move the m_maxAppliedImpulse into base class, and use it for motor strength/point to point constraint strength

This commit is contained in:
erwin.coumans
2013-10-22 21:49:52 +00:00
parent f22ceecb82
commit 0024c87316
8 changed files with 25 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ protected:
btRigidBody* m_rigidBodyB;
btVector3 m_pivotInA;
btVector3 m_pivotInB;
btScalar m_maxAppliedImpulse;
public:
@@ -54,14 +54,7 @@ public:
m_pivotInB = pivotInB;
}
btScalar getMaxAppliedImpulse() const
{
return m_maxAppliedImpulse;
}
void setMaxAppliedImpulse(btScalar maxImp)
{
m_maxAppliedImpulse = maxImp;
}
};
#endif //BT_MULTIBODY_POINT2POINT_H