X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FMoveable.h;h=7627283ffedb958d2ba9acbd0b588314af7ebc3b;hb=1129b8ac89f1e614f69793227ccec90157708aea;hp=b5fbfe5cb7e635249197d5b697eb28e3de148f7c;hpb=96ab5904b059e00e78b26a6527790c8dc951e324;p=space.git diff --git a/src/graphics/Moveable.h b/src/graphics/Moveable.h index b5fbfe5..7627283 100644 --- a/src/graphics/Moveable.h +++ b/src/graphics/Moveable.h @@ -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 &Pos() const { return pos; } Vector Vel() const { return Vector(dir) * speed; } + void SetSpeed(float s) { speed = s; } void Update(Scalar delta) { pos += Vel() * delta;