]> git.localhorst.tv Git - blobs.git/blobdiff - src/world/Body.hpp
standardized logging
[blobs.git] / src / world / Body.hpp
index 3db5e37e362b3de7352dac22ee6a4a848dac5652..165d8483f5cbc6d890b7280ec91d6ed85401e6b1 100644 (file)
@@ -2,7 +2,7 @@
 #define BLOBS_WORLD_BODY_HPP_
 
 #include "Orbit.hpp"
-#include "../graphics/glm.hpp"
+#include "../math/glm.hpp"
 
 #include <vector>
 
@@ -35,6 +35,7 @@ public:
 
 public:
        bool HasSimulation() const noexcept { return sim; }
+       Simulation &GetSimulation() noexcept { return *sim; }
        const Simulation &GetSimulation() const noexcept { return *sim; }
        void SetSimulation(Simulation &) noexcept;
 
@@ -86,8 +87,8 @@ public:
 
        void Tick(double dt);
        void Cache() noexcept;
+       void CheckCollision() noexcept;
 
-       // body takes over ownership of given pointer
        void AddCreature(creature::Creature *);
        void RemoveCreature(creature::Creature *);
        std::vector<creature::Creature *> &Creatures() noexcept { return creatures; }