ecsgame/ECS/Components/PathMove.h
karl 8f3d3dc7bf First steps towards Catmul-Rom spline path movement
Lots of hardcoded stuff, but interpolation between two points is working and displayed.
2020-09-28 16:52:35 +02:00

22 lines
339 B
C++

#ifndef __PATHMOVE_H__
#define __PATHMOVE_H__
#include <glm/glm.hpp>
#include <vector>
struct PathMove {
struct Path {
std::vector<glm::vec3> points;
};
PathMove(double speed) : speed(speed) {}
double speed;
Path path;
int current_point_index;
float time_passed = 0.0;
};
#endif // __PATHMOVE_H__