Speed up the physics engine: hook the SOLID broad phase, so we can either reject...
[blender.git] / source / gameengine / Physics / Dummy / DummyPhysicsEnvironment.cpp
index bfb24f5fec1bfea2aeb9d01840431555252c490a..6c69e14c8865dee19c16dcafd1d91a8b6d59643c 100644 (file)
@@ -48,14 +48,24 @@ DummyPhysicsEnvironment::~DummyPhysicsEnvironment()
        //destroy physicsengine data
 }
 
-void DummyPhysicsEnvironment::proceed(double timeStep)
+void DummyPhysicsEnvironment::beginFrame()
+{
+       // beginning of logic frame: apply forces
+}
+
+void DummyPhysicsEnvironment::endFrame()
+{
+       // end of logic frame: clear forces
+}
+
+bool DummyPhysicsEnvironment::proceed(double timeStep)
 {
        //step physics simulation, typically perform
        
        //collision detection 
        //solve constraints
        //integrate solution
-
+       // return true if an update was done.
 }
 
 void DummyPhysicsEnvironment::setGravity(float x,float y,float z)