Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwin Coumans <blender@erwincoumans.com>2006-01-30 23:33:59 +0300
committerErwin Coumans <blender@erwincoumans.com>2006-01-30 23:33:59 +0300
commit18857a6225fba4b2b0d662b904cf04625a56e088 (patch)
tree2b6efca751351db9d2c32847395d3dbba3db56cc /source/gameengine/Ketsji/KX_VehicleWrapper.h
parent8e9222ec217ab98980ffd75cd14387a062b46c9a (diff)
prepared physics/game engine infrastructure for vehicle support.
fixed a python related bug with physics contraints fixed some line-ending problem with blenderbuttons.c makefile/scons/projectfiles need to add source/gameengine/Ketsji/KX_VehicleWrapper.cpp
Diffstat (limited to 'source/gameengine/Ketsji/KX_VehicleWrapper.h')
-rw-r--r--source/gameengine/Ketsji/KX_VehicleWrapper.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_VehicleWrapper.h b/source/gameengine/Ketsji/KX_VehicleWrapper.h
new file mode 100644
index 00000000000..ebdf1b0fa2f
--- /dev/null
+++ b/source/gameengine/Ketsji/KX_VehicleWrapper.h
@@ -0,0 +1,33 @@
+#ifndef KX_VEHICLE_WRAPPER
+#define KX_VEHICLE_WRAPPER
+
+#include "Value.h"
+#include "PHY_DynamicTypes.h"
+class PHY_IVehicle;
+
+///Python interface to physics vehicles (primarily 4-wheel cars and 2wheel bikes)
+class KX_VehicleWrapper : public PyObjectPlus
+{
+ Py_Header;
+ virtual PyObject* _getattr(const STR_String& attr);
+ virtual int _setattr(const STR_String& attr, PyObject *value);
+public:
+ KX_VehicleWrapper(PHY_IVehicle* vehicle,class PHY_IPhysicsEnvironment* physenv,PyTypeObject *T = &Type);
+ virtual ~KX_VehicleWrapper ();
+ int getConstraintId();
+
+
+ KX_PYMETHOD(KX_VehicleWrapper,AddWheel);
+ KX_PYMETHOD(KX_VehicleWrapper,GetNumWheels);
+ KX_PYMETHOD(KX_VehicleWrapper,GetWheelsTransform);
+
+ KX_PYMETHOD(KX_VehicleWrapper,GetConstraintId);
+ KX_PYMETHOD(KX_VehicleWrapper,GetConstraintType);
+
+
+private:
+ PHY_IVehicle* m_vehicle;
+ PHY_IPhysicsEnvironment* m_physenv;
+};
+
+#endif //KX_VEHICLE_WRAPPER