]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Creature.hpp
more variety over age
[blobs.git] / src / creature / Creature.hpp
index 7c06cc81d876a1c1464552c4c38e1807db4bf221..f443e48940d2caa20da318c706f196f939a667fd 100644 (file)
@@ -94,21 +94,21 @@ 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 &sim;
        std::string name;
 
        Genome genome;
        Genome::Properties<double> properties;
+       int cur_prop;
 
        double mass;
        double density;
@@ -127,8 +127,6 @@ private:
        Situation situation;
        Steering steering;
 
-       glm::dvec3 vel;
-
        struct Attributes {
                glm::vec3 position;
                glm::vec3 normal;