Fixes to ghosts

This commit is contained in:
2023-10-13 22:25:01 -04:00
parent e4ff110d85
commit 1581065661
5 changed files with 87 additions and 73 deletions

View File

@@ -6,12 +6,13 @@
class Ghost {
public:
Ghost(float xmin, float xmax, float zmin, float zmax);
void apply_movement();
void apply_movement(float curr_time, float timed);
glm::mat4 get_model(glm::vec3 &camera_pos);
private:
int ghost_id;
bool first_frame;
glm::vec3 moved;
glm::vec3 pos;
float yawr;
float xmin;
@@ -20,6 +21,7 @@ class Ghost {
float zmax;
float y_offset;
float prev_move_time;
float direction_persist;
};
float rand_float(float rmin, float rmax);