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);
}
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);
}
}