From 9dfe040beec8dcb010719b3c33667cac44606dde Mon Sep 17 00:00:00 2001 From: "erwin.coumans" Date: Sun, 21 Feb 2010 00:30:17 +0000 Subject: [PATCH] Add some btTypedConstaint methods to btRaycastVehicle for backwards compatibility. --- src/BulletDynamics/Vehicle/btRaycastVehicle.h | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/BulletDynamics/Vehicle/btRaycastVehicle.h b/src/BulletDynamics/Vehicle/btRaycastVehicle.h index d5ceaeea8..f980c6137 100644 --- a/src/BulletDynamics/Vehicle/btRaycastVehicle.h +++ b/src/BulletDynamics/Vehicle/btRaycastVehicle.h @@ -29,6 +29,10 @@ class btRaycastVehicle : public btActionInterface btAlignedObjectArray m_axle; btAlignedObjectArray m_forwardImpulse; btAlignedObjectArray m_sideImpulse; + + ///backwards compatibility + int m_userConstraintType; + int m_userConstraintId; public: 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; + } };