AABB collision algoritması ile basitçe halledilebilir.

https://developer.mozilla.org/en-US/...sion_detection