move the m_maxAppliedImpulse into base class, and use it for motor strength/point to point constraint strength
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user