--- 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;
+}