BGE: This patch adds a character wrapper (similar to the already implemented vehicle...
[blender.git] / source / gameengine / Physics / common / PHY_IPhysicsEnvironment.h
index 66ca037aa47eb16bf67418604ffea528574c8fa5..077d225903ca395a126f9bc2ddc8190ec049d151 100644 (file)
@@ -40,6 +40,7 @@
 #endif
 
 class PHY_IVehicle;
+class PHY_ICharacter;
 class RAS_MeshObject;
 class PHY_IPhysicsController;
 
@@ -156,6 +157,9 @@ class PHY_IPhysicsEnvironment
                //complex constraint for vehicles
                virtual PHY_IVehicle*   getVehicleConstraint(int constraintId) =0;
 
+               // Character physics wrapper
+               virtual PHY_ICharacter* getCharacterController(class KX_GameObject* ob) =0;
+
                virtual PHY_IPhysicsController* rayTest(PHY_IRayCastFilterCallback &filterCallback, float fromX,float fromY,float fromZ, float toX,float toY,float toZ)=0;
 
                //culling based on physical broad phase