# How to detect Collision without using physics on array images

**URL:** <https://phaser.discourse.group/t/how-to-detect-collision-without-using-physics-on-array-images/7658>\
**Category:** Phaser 3\
**Created:** [October 12, 2020, 6:18am UTC](https://phaser.discourse.group/t/how-to-detect-collision-without-using-physics-on-array-images/7658 "2020-10-12T06:18:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![agailh86](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@agailh86](https://phaser.discourse.group/u/agailh86)\
**Post date:** [October 12, 2020, 6:18am UTC](https://phaser.discourse.group/t/how-to-detect-collision-without-using-physics-on-array-images/7658/1 "2020-10-12T06:18:07Z")

</div>

HI , just make my first ever project on phaser 3. I am making a feeding frenzy like game , and i still confuse on how to detect collision between my player fish with pointer controlled and enemy fish with array image ? . Sorry for my bad english ,thanks for ur help!

---

<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:** [October 13, 2020, 2:09pm UTC](https://phaser.discourse.group/t/how-to-detect-collision-without-using-physics-on-array-images/7658/2 "2020-10-13T14:09:49Z")

</div>

```javascript
var GetBounds = Phaser.Display.Bounds.GetBounds;
var RectangleToRectangle = Phaser.Geom.Intersects.RectangleToRectangle;

for (var fish of fishes) {
  if (RectangleToRectangle(GetBounds(player), GetBounds(fish))) {
    // …
  }
}

```

I would be easier with physics though.
