]> git.localhorst.tv Git - blank.git/blobdiff - src/ai/RandomWalk.hpp
group entity updates in as few packets as possible
[blank.git] / src / ai / RandomWalk.hpp
index 4d00f0bbdc53276b06df664fb87d23d6c1856ac0..8a0a19da51aaa898499d5cdba4202075bed5797f 100644 (file)
@@ -5,6 +5,8 @@
 
 #include "../rand/GaloisLFSR.hpp"
 
+#include <glm/glm.hpp>
+
 
 namespace blank {
 
@@ -18,9 +20,21 @@ public:
 
        void Update(int dt) override;
 
+private:
+       void Change() noexcept;
+
 private:
        GaloisLFSR random;
-       int time_left;
+
+       glm::vec3 start_vel;
+       glm::vec3 target_vel;
+
+       glm::vec3 start_rot;
+       glm::vec3 target_rot;
+
+       int switch_time;
+       float lerp_max;
+       float lerp_time;
 
 };