]> git.localhorst.tv Git - blobs.git/commitdiff
brake hard, not break hard
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 8 Dec 2017 23:29:25 +0000 (00:29 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 8 Dec 2017 23:29:25 +0000 (00:29 +0100)
src/creature/creature.cpp

index 6f619b940b7aea79d87aaea0fce921157bd3eaca..396385e9ce33253c512eea680c1f9a3ee255da5a 100644 (file)
@@ -1007,8 +1007,8 @@ glm::dvec3 Steering::Force(const Situation::State &s) const noexcept {
                result += repulse;
        }
        if (halting) {
-               // break twice as hard
-               result += -2.0 * s.vel * force;
+               // brake hard
+               result += -5.0 * s.vel * force;
        }
        if (seeking) {
                glm::dvec3 diff = target - s.pos;