Blender V2.61 - r43446

KX_VehicleWrapper.h

Go to the documentation of this file.
00001 
00006 #ifndef KX_VEHICLE_WRAPPER
00007 #define KX_VEHICLE_WRAPPER
00008 
00009 #include "Value.h"
00010 #include "PHY_DynamicTypes.h"
00011 class PHY_IVehicle;
00012 class PHY_IMotionState;
00013 
00014 #include <vector>
00015 
00017 class   KX_VehicleWrapper : public PyObjectPlus
00018 {
00019     Py_Header
00020 
00021     std::vector<PHY_IMotionState*> m_motionStates;
00022 
00023 public:
00024     KX_VehicleWrapper(PHY_IVehicle* vehicle,class PHY_IPhysicsEnvironment* physenv);
00025     virtual ~KX_VehicleWrapper ();
00026     int         getConstraintId();
00027     
00028 #ifdef WITH_PYTHON
00029     
00030     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,AddWheel);
00031     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetNumWheels);
00032     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelOrientationQuaternion);
00033     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelRotation);
00034     
00035     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetWheelPosition);
00036     
00037     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetConstraintId);
00038     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,GetConstraintType);
00039 
00040     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSteeringValue);
00041 
00042     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,ApplyEngineForce);
00043 
00044     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,ApplyBraking);
00045 
00046     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetTyreFriction);
00047 
00048     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionStiffness);
00049     
00050     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionDamping);
00051     
00052     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetSuspensionCompression);
00053     
00054     KX_PYMETHOD_VARARGS(KX_VehicleWrapper,SetRollInfluence);
00055 #endif // WITH_PYTHON
00056 
00057 private:
00058     PHY_IVehicle*            m_vehicle;
00059     PHY_IPhysicsEnvironment* m_physenv;
00060 };
00061 
00062 #endif //KX_VEHICLE_WRAPPER