Add some btTypedConstaint methods to btRaycastVehicle for backwards compatibility.
This commit is contained in:
@@ -30,6 +30,10 @@ class btRaycastVehicle : public btActionInterface
|
|||||||
btAlignedObjectArray<btScalar> m_forwardImpulse;
|
btAlignedObjectArray<btScalar> m_forwardImpulse;
|
||||||
btAlignedObjectArray<btScalar> m_sideImpulse;
|
btAlignedObjectArray<btScalar> m_sideImpulse;
|
||||||
|
|
||||||
|
///backwards compatibility
|
||||||
|
int m_userConstraintType;
|
||||||
|
int m_userConstraintId;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
class btVehicleTuning
|
class btVehicleTuning
|
||||||
{
|
{
|
||||||
@@ -191,6 +195,26 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
///backwards compatibility
|
||||||
|
int getUserConstraintType() const
|
||||||
|
{
|
||||||
|
return m_userConstraintType ;
|
||||||
|
}
|
||||||
|
|
||||||
|
void setUserConstraintType(int userConstraintType)
|
||||||
|
{
|
||||||
|
m_userConstraintType = userConstraintType;
|
||||||
|
};
|
||||||
|
|
||||||
|
void setUserConstraintId(int uid)
|
||||||
|
{
|
||||||
|
m_userConstraintId = uid;
|
||||||
|
}
|
||||||
|
|
||||||
|
int getUserConstraintId() const
|
||||||
|
{
|
||||||
|
return m_userConstraintId;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user