src/PhysicsObject.cc
changeset 427 01e77fe8c040
parent 408 e6cfc44266af
child 428 712b943195a6
--- a/src/PhysicsObject.cc	Thu Jan 22 20:21:10 2009 +0200
+++ b/src/PhysicsObject.cc	Sat Jan 24 00:47:54 2009 +0200
@@ -348,12 +348,7 @@
 Vector PhysicsObject::getPreviousPosition (void) const {
     return previousPosition;
 }
-    
-void PhysicsObject::setPosition (Vector pos) {
-    this->previousPosition = this->position;
-    this->position = pos;
-}
-    
+       
 PixelCoordinate PhysicsObject::getCoordinate (void) const {
     return world.terrain.getPixelCoordinate(position);
 }
@@ -469,3 +464,12 @@
     else
         return 1;
 }
+
+void PhysicsObject::setPosition (Vector pos) {
+    this->previousPosition = this->position;
+    this->position = pos;
+}
+
+void PhysicsObject::setVelocity (Vector velocity) {
+    this->velocity = velocity;
+}