diff options
Diffstat (limited to 'include/components.hpp')
-rw-r--r-- | include/components.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/components.hpp b/include/components.hpp index 1deaf69..8e245a7 100644 --- a/include/components.hpp +++ b/include/components.hpp @@ -44,10 +44,11 @@ struct Direction { * @param x The velocity of the object on the x axis. * @param y The velocity of the object on the y axis. */ - Direction(float x = 0.0f, float y = 0.0f): x(x), y(y) {} + Direction(float x = 0.0f, float y = 0.0f): x(x), y(y), grounded(false) {} float x; /**< Velocity the object is moving in the x direction, this is added to the position */ float y; /**< Velocity the object is moving in the y direction, this is added to the position */ + bool grounded; }; /** |