ecsgame/ECS/Components/Movement.h
karl 3fb23200fb Add system to switch between path and manual movement
This system automatically checks for entities with both movement methods, and activates/deactivates them when pressing P.
2020-10-03 17:44:52 +02:00

21 lines
306 B
C

//
// Created by karl on 04.01.20.
//
#ifndef ECSGAME_MOVEMENT_H
#define ECSGAME_MOVEMENT_H
struct Movement {
Movement(glm::vec3 speed) : speed(speed) {}
glm::vec3 speed;
glm::ivec3 moving = glm::ivec3(0, 0, 0);
glm::vec3 velocity;
bool is_active;
};
#endif //ECSGAME_MOVEMENT_H