I added a couple of lines. This still clearly is not going to work in this state.
authorsaiam
Mon, 17 Nov 2008 20:30:25 +0000
changeset 45 32c876923cac
parent 44 b165c9a26b2e
child 46 6a9a95912801
I added a couple of lines. This still clearly is not going to work in this state.
src/proto2/Physics.cc
--- a/src/proto2/Physics.cc	Thu Nov 13 16:00:40 2008 +0000
+++ b/src/proto2/Physics.cc	Mon Nov 17 20:30:25 2008 +0000
@@ -1,5 +1,8 @@
+#include <algorithm>
+
 #include "Physics.hh"
 
+
 PhysicsWorld::PhysicsWorld (Vector dimensions) : dimensions(dimensions) {}
 
 void PhysicsWorld::addObject (PhysicsObject *object) {
@@ -7,7 +10,7 @@
 }
 
 void PhysicsWorld::tick () {
-
+  std::for_each(objects.begin(), objects.end(), /*TODO: tick*/);
 }
 
 PhysicsObject::PhysicsObject (mass, position, velocity, force) 
@@ -47,6 +50,6 @@
 }
 
 void PhysicsObject::tick () {
-
+  this->updatePosition();
 }