]> git.localhorst.tv Git - blank.git/blobdiff - src/world/World.hpp
split collision response
[blank.git] / src / world / World.hpp
index 767f527a9034b97f352c66eda80f42d3f6569c0b..e2858739387830ddff08812d4907d084fea975a5 100644 (file)
@@ -61,6 +61,11 @@ public:
 
        /// check if given entity intersects with the world
        bool Intersection(const Entity &e, const EntityState &, std::vector<WorldCollision> &);
+       /// combine contacts into a single penetration vector
+       /// depth is given to point towards position of given state
+       static glm::vec3 CombinedInterpenetration(
+               const EntityState &,
+               const std::vector<WorldCollision> &) noexcept;
 
        /// check if given box (M * AABB) intersects with the world
        /// M is assumed to be calculated in reference to given chunk coords