diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-01-30 23:33:59 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-01-30 23:33:59 +0300 |
commit | 18857a6225fba4b2b0d662b904cf04625a56e088 (patch) | |
tree | 2b6efca751351db9d2c32847395d3dbba3db56cc /source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h | |
parent | 8e9222ec217ab98980ffd75cd14387a062b46c9a (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/Physics/common/PHY_IPhysicsEnvironment.h')
-rw-r--r-- | source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h b/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h index 078f84d4de2..6b40b51eba7 100644 --- a/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h +++ b/source/gameengine/Physics/common/PHY_IPhysicsEnvironment.h @@ -29,11 +29,13 @@ * * ***** END GPL/BL DUAL LICENSE BLOCK ***** */ + #ifndef _IPHYSICSENVIRONMENT #define _IPHYSICSENVIRONMENT #include <vector> #include "PHY_DynamicTypes.h" +class PHY_IVehicle; /** * Physics Environment takes care of stepping the simulation and is a container for physics entities (rigidbodies,constraints, materials etc.) @@ -85,6 +87,9 @@ class PHY_IPhysicsEnvironment float axisX,float axisY,float axisZ)=0; virtual void removeConstraint(int constraintid)=0; + //complex constraint for vehicles + virtual PHY_IVehicle* getVehicleConstraint(int constraintId) =0; + virtual PHY_IPhysicsController* rayTest(PHY_IPhysicsController* ignoreClient, float fromX,float fromY,float fromZ, float toX,float toY,float toZ, float& hitX,float& hitY,float& hitZ,float& normalX,float& normalY,float& normalZ)=0; |