X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2FCreature.hpp;h=e2f9b446ab010600a4541d78449d21f949aea168;hp=7c06cc81d876a1c1464552c4c38e1807db4bf221;hb=b0e73e632f0b681a0af78f889dd82d370563944a;hpb=c475ecb15fb2222977cf64ca7bdbea0f303a4192 diff --git a/src/creature/Creature.hpp b/src/creature/Creature.hpp index 7c06cc8..e2f9b44 100644 --- a/src/creature/Creature.hpp +++ b/src/creature/Creature.hpp @@ -94,15 +94,14 @@ public: Steering &GetSteering() noexcept { return steering; } const Steering &GetSteering() const noexcept { return steering; } - void Velocity(const glm::dvec3 &v) noexcept { vel = v; } - const glm::dvec3 &Velocity() const noexcept { return vel; } - bool Moving() const noexcept { return glm::length2(vel) < 0.00000001; } - glm::dmat4 LocalTransform() noexcept; void BuildVAO(); void Draw(graphics::Viewport &); +private: + Situation::Derivative Step(const Situation::Derivative &ds, double dt) const noexcept; + private: world::Simulation ∼ std::string name; @@ -127,8 +126,6 @@ private: Situation situation; Steering steering; - glm::dvec3 vel; - struct Attributes { glm::vec3 position; glm::vec3 normal;