diff options
Diffstat (limited to 'include/components/velocity.hpp')
-rw-r--r-- | include/components/velocity.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/components/velocity.hpp b/include/components/velocity.hpp index 2337ebd..96b8673 100644 --- a/include/components/velocity.hpp +++ b/include/components/velocity.hpp @@ -3,7 +3,11 @@ #include "vec2.hpp" -struct Velocity : public Vec2 {}; +struct Velocity : public Vec2 { + constexpr Velocity() = default; + constexpr Velocity(float x_, float y_): Vec2(x_, y_) {} + Velocity(std::tuple<float, float> tup): Vec2(tup) {} +}; #endif // COMPONENTS_VELOCITY_HPP |