Fixed bug with cache not updating
This commit is contained in:
parent
89925763cd
commit
f2f215fa91
2 changed files with 18 additions and 15 deletions
|
|
@ -28,7 +28,7 @@ namespace SCollision {
|
|||
T width() const { return max.x() - min.x(); }
|
||||
T height() const { return max.y() - min.y(); }
|
||||
// Do not try to get intersection between AABBs unless you know they collide
|
||||
AABB<T> get_intersection_between_aabbs(const AABB<T>& other) {
|
||||
AABB<T> get_intersection_between_aabbs(const AABB<T>& other) const {
|
||||
return {
|
||||
cwise_vec_max(other.min, min),
|
||||
cwise_vec_min(other.max, max)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue