]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Situation.hpp
remove ability to fly at will
[blobs.git] / src / creature / Situation.hpp
index 25d218ddc2635d08bd26917df55623aa7082c23f..a442d4473e7b5dca314025d4538db1e97ef539ab 100644 (file)
@@ -53,7 +53,9 @@ public:
        bool OnPlanet() const noexcept;
        world::Planet &GetPlanet() const noexcept { return *planet; }
        bool OnSurface() const noexcept;
+       bool OnGround() const noexcept;
        const glm::dvec3 &Position() const noexcept { return state.pos; }
+       glm::dvec3 SurfaceNormal() const noexcept;
        world::Tile &GetTile() const noexcept;
        const world::TileType &GetTileType() const noexcept;
 
@@ -61,7 +63,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;