From: Daniel Karbach Date: Wed, 6 Dec 2017 23:10:48 +0000 (+0100) Subject: tweak moving var X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=237297d676d6841a35d320cc910a2d42aa9c13ef;p=blobs.git tweak moving var --- diff --git a/src/creature/Situation.hpp b/src/creature/Situation.hpp index 561f106..fb26650 100644 --- a/src/creature/Situation.hpp +++ b/src/creature/Situation.hpp @@ -61,7 +61,7 @@ public: const State &GetState() const noexcept { return state; } const glm::dvec3 &Velocity() const noexcept { return state.vel; } - bool Moving() const noexcept { return glm::length2(state.vel) > 0.000001; } + bool Moving() const noexcept { return glm::length2(state.vel) > 0.00001; } void Move(const glm::dvec3 &dp) noexcept; void Accelerate(const glm::dvec3 &dv) noexcept; void EnforceConstraints(State &) noexcept;