]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Steering.hpp
use RK4 to integrate creature state
[blobs.git] / src / creature / Steering.hpp
index 6d5b40a2103e3d98cb8039c6010ac75e6fc85339..3ccf9e3d492dda6fa585849d0e393f7c81993ec9 100644 (file)
@@ -1,14 +1,13 @@
 #ifndef BLOBS_CREATURE_STEERING_HPP_
 #define BLOBS_CREATURE_STEERING_HPP_
 
-#include "../graphics/glm.hpp"
+#include "Situation.hpp"
+#include "../math/glm.hpp"
 
 
 namespace blobs {
 namespace creature {
 
-class Creature;
-
 class Steering {
 
 public:
@@ -26,7 +25,7 @@ public:
        void Halt() noexcept;
        void GoTo(const glm::dvec3 &) noexcept;
 
-       glm::dvec3 Acceleration(Creature &) const noexcept;
+       glm::dvec3 Acceleration(const Situation::State &) const noexcept;
 
 private:
        bool SumForce(glm::dvec3 &out, const glm::dvec3 &in) const noexcept;