]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Steering.hpp
use RK4 to integrate creature state
[blobs.git] / src / creature / Steering.hpp
index 51f2c63db710bc098d689f540ef00801a050cadb..3ccf9e3d492dda6fa585849d0e393f7c81993ec9 100644 (file)
@@ -1,14 +1,13 @@
 #ifndef BLOBS_CREATURE_STEERING_HPP_
 #define BLOBS_CREATURE_STEERING_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;