Lots of hardcoded stuff, but interpolation between two points is working and displayed.
22 lines
339 B
C++
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__
|