Skip to content

Commit

Permalink
Merge pull request godotengine#1360 from AThousandShips/aabb_fix
Browse files Browse the repository at this point in the history
Fix `AABB.encloses` failing on shared upper bound
  • Loading branch information
dsnopek committed Jan 19, 2024
2 parents 0ddef6e + 3943e41 commit 480a0f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/godot_cpp/variant/aabb.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ inline bool AABB::encloses(const AABB &p_aabb) const {

return (
(src_min.x <= dst_min.x) &&
(src_max.x > dst_max.x) &&
(src_max.x >= dst_max.x) &&
(src_min.y <= dst_min.y) &&
(src_max.y > dst_max.y) &&
(src_max.y >= dst_max.y) &&
(src_min.z <= dst_min.z) &&
(src_max.z > dst_max.z));
(src_max.z >= dst_max.z));
}

Vector3 AABB::get_support(const Vector3 &p_normal) const {
Expand Down

0 comments on commit 480a0f8

Please sign in to comment.