ecsgame/ECS/Components/PathMove.h

30 lines
635 B
C
Raw Normal View History

#ifndef __PATHMOVE_H__
#define __PATHMOVE_H__
#include <glm/glm.hpp>
2020-09-29 17:56:07 +02:00
#include <glm/gtx/quaternion.hpp>
#include <vector>
struct PathMove {
struct Path {
Path(std::vector<glm::vec3> points) : points(points) {}
2020-09-29 17:56:07 +02:00
std::vector<glm::vec3> points;
};
2020-09-29 17:56:07 +02:00
struct Views {
Views(std::vector<glm::quat> views) : views(views) {}
2020-09-29 17:56:07 +02:00
std::vector<glm::quat> views;
};
2020-09-29 17:56:07 +02:00
PathMove(double speed, Path path, Views views) : speed(speed), path(path), views(views) {}
2020-09-29 17:56:07 +02:00
double speed;
float time_passed = 0.0;
int current_point_index = 0;
2020-09-29 17:56:07 +02:00
Path path;
Views views;
};
#endif // __PATHMOVE_H__