# How to stop bouncing on collison?

**URL:** <https://phaser.discourse.group/t/how-to-stop-bouncing-on-collison/4281>\
**Category:** Phaser 3\
**Created:** [November 17, 2019, 3:26am UTC](https://phaser.discourse.group/t/how-to-stop-bouncing-on-collison/4281 "2019-11-17T03:26:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snorg](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@snorg](https://phaser.discourse.group/u/snorg)\
**Post date:** [November 17, 2019, 3:26am UTC](https://phaser.discourse.group/t/how-to-stop-bouncing-on-collison/4281/1 "2019-11-17T03:26:04Z")

</div>

I’m starting to learn Phaser, so this is a very beginner’s question.

I’m trying to set up a collision between bullet and target. When the collision happens, I want the bullet to disappear and the target to stay where it is.

What I’m doing is:

```javascript
scene.physics.add.collider(target, bullet, doCollision);

```

And then

```javascript
function doCollision() {
    bullet.disableBody(true, true);    
}

```

When the collision happens though, target bounces away. How do I prevent that from happening?

---

<div class="post-metadata">

**Author:** ![seyuup](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@seyuup](https://phaser.discourse.group/u/seyuup)\
**Post date:** [November 17, 2019, 4:18am UTC](https://phaser.discourse.group/t/how-to-stop-bouncing-on-collison/4281/2 "2019-11-17T04:18:31Z")

</div>

Set the target’s body to immovable = true and it will not be affected by other objects colliding with it.  
`target.body.immovable = true;`

---

<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:** [November 17, 2019, 4:27am UTC](https://phaser.discourse.group/t/how-to-stop-bouncing-on-collison/4281/3 "2019-11-17T04:27:12Z")

</div>

Also you can use `overlap()` instead:

```javascript
scene.physics.add.overlap(target, bullet, doCollision);

```
