X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fshape.cpp;h=8aa1c257e0d8f65eb69b54d588b4e763e30296bf;hb=419e33e565bffbaf0416ed4a5f80e9c81f62a479;hp=82659437f60fc87506f3847e181494514a99a7cd;hpb=c04ea5a6f67d446ea29aa2e88dc4c666956d7732;p=blank.git diff --git a/src/model/shape.cpp b/src/model/shape.cpp index 8265943..8aa1c25 100644 --- a/src/model/shape.cpp +++ b/src/model/shape.cpp @@ -180,7 +180,9 @@ bool CuboidShape::Intersects( const AABB &box, const glm::mat4 &box_M ) const noexcept { - return Intersection(bb, M, box, box_M); + float depth; + glm::vec3 normal; + return Intersection(bb, M, box, box_M, depth, normal); } @@ -347,7 +349,9 @@ bool StairShape::Intersects( const AABB &box, const glm::mat4 &box_M ) const noexcept { - return Intersection(bot, M, box, box_M) || Intersection(top, M, box, box_M); + float depth; + glm::vec3 normal; + return Intersection(bot, M, box, box_M, depth, normal) || Intersection(top, M, box, box_M, depth, normal); } }