diff --git a/src/core/collision_shape.cpp b/src/core/collision_shape.cpp index 2ae502f..ff2a3bc 100644 --- a/src/core/collision_shape.cpp +++ b/src/core/collision_shape.cpp @@ -95,7 +95,7 @@ bool CollisionShape::overlap_aabb_aabb(ShapeAABB lhs, Transform lhst, ShapeAABB std::abs((lhst.position.y - lhs.v_extent) - (rhst.position.y + rhs.v_extent)), lhs.v_extent, rhs.v_extent })}; - return bound_x < (lhs.h_extent + rhs.h_extent) || bound_y < (lhs.v_extent + rhs.v_extent); + return bound_x < (lhs.h_extent + rhs.h_extent) && bound_y < (lhs.v_extent + rhs.v_extent); } CollidableNode *CollisionShape::get_owner() const {