X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fcreature%2FSituation.hpp;h=f29d9b08b96b0e5c07c4bb588e5a1f0cfa896928;hp=a12f4224c64ca9d9dcb5d8ab6cd4bc4ddb1f13ab;hb=6c1097479fd1ea41f0f76b91e67613822acf2e90;hpb=2ab70a92ae39cebc6166ef15545ebcbd31a31c38 diff --git a/src/creature/Situation.hpp b/src/creature/Situation.hpp index a12f422..f29d9b0 100644 --- a/src/creature/Situation.hpp +++ b/src/creature/Situation.hpp @@ -56,6 +56,7 @@ public: void SetState(const State &s) noexcept { state = s; } 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.00000001; } void Move(const glm::dvec3 &dp) noexcept; void SetPlanetSurface(world::Planet &, int srf, const glm::dvec3 &pos) noexcept;