X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2FSituation.hpp;h=3c4a28a567ef4877b09ad68c94575c12545179cf;hp=4205cff449c8e0f1d57cdaedd39c56662c62ddd2;hb=b4deadd9f4e399207e2530ea39a447c0d9d260a3;hpb=f5fc0c2bd1c0d1e2737d2b4ed49c3de16aa67c67 diff --git a/src/creature/Situation.hpp b/src/creature/Situation.hpp index 4205cff..3c4a28a 100644 --- a/src/creature/Situation.hpp +++ b/src/creature/Situation.hpp @@ -66,6 +66,8 @@ public: const glm::dvec3 &Velocity() const noexcept { return state.vel; } bool Moving() const noexcept { return glm::length2(state.vel) > 0.0000001; } void Move(const glm::dvec3 &dp) noexcept; + void Accelerate(const glm::dvec3 &dv) noexcept; + void EnforceConstraints(State &) noexcept; void Heading(const glm::dvec3 &h) noexcept { state.dir = h; } const glm::dvec3 &Heading() const noexcept { return state.dir; }