2020-01-04 18:25:47 +01:00
|
|
|
//
|
|
|
|
// Created by karl on 04.01.20.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef ECSGAME_MOVEMENT_H
|
|
|
|
#define ECSGAME_MOVEMENT_H
|
|
|
|
|
2021-01-02 15:20:33 +01:00
|
|
|
#include <glm/glm.hpp>
|
|
|
|
|
2020-01-04 18:25:47 +01:00
|
|
|
struct Movement {
|
2020-01-07 13:10:23 +01:00
|
|
|
Movement(glm::vec3 speed) : speed(speed) {}
|
2020-01-04 18:25:47 +01:00
|
|
|
|
2020-01-07 13:10:23 +01:00
|
|
|
glm::vec3 speed;
|
2020-01-04 18:25:47 +01:00
|
|
|
|
2020-10-02 22:47:10 +02:00
|
|
|
glm::ivec3 moving = glm::ivec3(0, 0, 0);
|
2020-01-04 18:25:47 +01:00
|
|
|
|
2020-01-07 13:10:23 +01:00
|
|
|
glm::vec3 velocity;
|
2020-10-03 17:43:24 +02:00
|
|
|
|
2020-10-27 21:13:07 +01:00
|
|
|
bool is_active = true;
|
2020-01-04 18:25:47 +01:00
|
|
|
};
|
|
|
|
|
2021-01-02 15:20:33 +01:00
|
|
|
#endif // ECSGAME_MOVEMENT_H
|