# How to detect if the rectangle of a sprite overlaps another?

**URL:** <https://phaser.discourse.group/t/how-to-detect-if-the-rectangle-of-a-sprite-overlaps-another/13383>\
**Category:** Phaser 2 / CE\
**Created:** [July 2, 2023, 10:15pm UTC](https://phaser.discourse.group/t/how-to-detect-if-the-rectangle-of-a-sprite-overlaps-another/13383 "2023-07-02T22:15:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKARI](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/akari/32/8585_2.png) [@AKARI](https://phaser.discourse.group/u/AKARI)\
**Post date:** [July 2, 2023, 10:15pm UTC](https://phaser.discourse.group/t/how-to-detect-if-the-rectangle-of-a-sprite-overlaps-another/13383/1 "2023-07-02T22:15:46Z")

</div>

I would like to know if there is any way to check if a sprite overlaps another using the rectangles of the physical body.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [July 3, 2023, 3:55am UTC](https://phaser.discourse.group/t/how-to-detect-if-the-rectangle-of-a-sprite-overlaps-another/13383/2 "2023-07-03T03:55:40Z")

</div>

If you mean Arcade Physics bodies, there’s [physics.arcade.intersects()](https://photonstorm.github.io/phaser-ce/Phaser.Physics.Arcade.html#intersects).

Without Arcade Physics, you can use [getBounds()](https://photonstorm.github.io/phaser-ce/PIXI.Sprite.html#getBounds) and [Phaser.Rectangle.intersects()](https://photonstorm.github.io/phaser-ce/Phaser.Rectangle.html#_intersects).
