X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2FSteering.hpp;h=cca757ee0b72763ec8b4f6558b8259d45ceedca2;hp=3ccf9e3d492dda6fa585849d0e393f7c81993ec9;hb=6c1097479fd1ea41f0f76b91e67613822acf2e90;hpb=2ab70a92ae39cebc6166ef15545ebcbd31a31c38 diff --git a/src/creature/Steering.hpp b/src/creature/Steering.hpp index 3ccf9e3..cca757e 100644 --- a/src/creature/Steering.hpp +++ b/src/creature/Steering.hpp @@ -23,21 +23,24 @@ public: public: void Halt() noexcept; + void Pass(const glm::dvec3 &) noexcept; void GoTo(const glm::dvec3 &) noexcept; glm::dvec3 Acceleration(const Situation::State &) const noexcept; private: bool SumForce(glm::dvec3 &out, const glm::dvec3 &in) const noexcept; + glm::dvec3 TargetVelocity(const Situation::State &, const glm::dvec3 &) const noexcept; private: - glm::dvec3 seek_target; + glm::dvec3 target; double max_accel = 1.0; double max_speed = 1.0; bool halting; bool seeking; + bool arriving; };