From f55e45f855250a5693455fe0f7e13fe0f35c7814 Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Mon, 13 Feb 2006 06:28:35 +0000 Subject: more vehicle preparation and some bullet collision detection bugfixes (related to collision margin) --- source/gameengine/Ketsji/KX_VehicleWrapper.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'source/gameengine/Ketsji/KX_VehicleWrapper.h') diff --git a/source/gameengine/Ketsji/KX_VehicleWrapper.h b/source/gameengine/Ketsji/KX_VehicleWrapper.h index ebdf1b0fa2f..22b8f186f4a 100644 --- a/source/gameengine/Ketsji/KX_VehicleWrapper.h +++ b/source/gameengine/Ketsji/KX_VehicleWrapper.h @@ -4,6 +4,9 @@ #include "Value.h" #include "PHY_DynamicTypes.h" class PHY_IVehicle; +class PHY_IMotionState; + +#include ///Python interface to physics vehicles (primarily 4-wheel cars and 2wheel bikes) class KX_VehicleWrapper : public PyObjectPlus @@ -11,6 +14,9 @@ class KX_VehicleWrapper : public PyObjectPlus Py_Header; virtual PyObject* _getattr(const STR_String& attr); virtual int _setattr(const STR_String& attr, PyObject *value); + + std::vector m_motionStates; + public: KX_VehicleWrapper(PHY_IVehicle* vehicle,class PHY_IPhysicsEnvironment* physenv,PyTypeObject *T = &Type); virtual ~KX_VehicleWrapper (); @@ -19,11 +25,21 @@ public: KX_PYMETHOD(KX_VehicleWrapper,AddWheel); KX_PYMETHOD(KX_VehicleWrapper,GetNumWheels); - KX_PYMETHOD(KX_VehicleWrapper,GetWheelsTransform); + KX_PYMETHOD(KX_VehicleWrapper,GetWheelOrientationQuaternion); + KX_PYMETHOD(KX_VehicleWrapper,GetWheelRotation); + + KX_PYMETHOD(KX_VehicleWrapper,GetWheelPosition); KX_PYMETHOD(KX_VehicleWrapper,GetConstraintId); KX_PYMETHOD(KX_VehicleWrapper,GetConstraintType); + KX_PYMETHOD(KX_VehicleWrapper,SetSteeringValue); + + KX_PYMETHOD(KX_VehicleWrapper,ApplyEngineForce); + + KX_PYMETHOD(KX_VehicleWrapper,ApplyBraking); + + private: PHY_IVehicle* m_vehicle; -- cgit v1.2.3