1 #ifndef BLOBS_CREATURE_STEERING_HPP_
2 #define BLOBS_CREATURE_STEERING_HPP_
4 #include "../graphics/glm.hpp"
19 void MaxAcceleration(double a) noexcept { max_accel = a; }
20 double MaxAcceleration() const noexcept { return max_accel; }
22 void MaxSpeed(double s) noexcept { max_speed = s; }
23 double MaxSpeed() const noexcept { return max_speed; }
27 void GoTo(const glm::dvec3 &) noexcept;
29 glm::dvec3 Acceleration(Creature &) const noexcept;
32 bool SumForce(glm::dvec3 &out, const glm::dvec3 &in) const noexcept;
35 glm::dvec3 seek_target;
37 double max_accel = 1.0;
38 double max_speed = 1.0;