diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-02-13 09:28:35 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-02-13 09:28:35 +0300 |
commit | f55e45f855250a5693455fe0f7e13fe0f35c7814 (patch) | |
tree | 3b98f46c92068f3dd6c1acb45887b0b16175878c /source/gameengine/Ketsji/KX_VehicleWrapper.h | |
parent | e4790aef46f7ca0b4ab01c34f043be9e7b1fa7f1 (diff) |
more vehicle preparation and some bullet collision detection bugfixes (related to collision margin)
Diffstat (limited to 'source/gameengine/Ketsji/KX_VehicleWrapper.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_VehicleWrapper.h | 18 |
1 files changed, 17 insertions, 1 deletions
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 <vector> ///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<PHY_IMotionState*> 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; |