Fixes to ghosts
This commit is contained in:
4
ghost.h
4
ghost.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user