]> git.localhorst.tv Git - space.git/blobdiff - src/graphics/Moveable.h
move to SDL2
[space.git] / src / graphics / Moveable.h
index b5fbfe5cb7e635249197d5b697eb28e3de148f7c..7627283ffedb958d2ba9acbd0b588314af7ebc3b 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef SPACE_MOVEABLE_H_
 #define SPACE_MOVEABLE_H_
 
-#include "../math/Vector.h"
+#include "Vector.h"
 
 
 namespace space {
@@ -16,6 +16,7 @@ public:
 public:
        const Vector<Scalar> &Pos() const { return pos; }
        Vector<Scalar> Vel() const { return Vector<Scalar>(dir) * speed; }
+       void SetSpeed(float s) { speed = s; }
 
        void Update(Scalar delta) {
                pos += Vel() * delta;