]> git.localhorst.tv Git - blobs.git/blobdiff - src/creature/Creature.hpp
primitive collision response
[blobs.git] / src / creature / Creature.hpp
index 44107bea32dd62b3f390b1e1b0575cb39d232fdf..13716878b06f2c6141ffe577e814b2fb2e489edd 100644 (file)
@@ -8,6 +8,7 @@
 #include "Situation.hpp"
 #include "Steering.hpp"
 #include "../graphics/SimpleVAO.hpp"
+#include "../math/geometry.hpp"
 #include "../math/glm.hpp"
 
 #include <memory>
@@ -157,6 +158,9 @@ public:
        Steering &GetSteering() noexcept { return steering; }
        const Steering &GetSteering() const noexcept { return steering; }
 
+       math::AABB CollisionBox() const noexcept;
+       glm::dmat4 CollisionTransform() const noexcept;
+
        glm::dmat4 LocalTransform() noexcept;
 
        void BuildVAO();