# Resize bounding box?

**URL:** <https://phaser.discourse.group/t/resize-bounding-box/4036>\
**Category:** Phaser 3\
**Created:** [October 23, 2019, 9:14pm UTC](https://phaser.discourse.group/t/resize-bounding-box/4036 "2019-10-23T21:14:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thundros](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/thundros/32/2057_2.png) [@Thundros](https://phaser.discourse.group/u/Thundros)\
**Post date:** [October 23, 2019, 9:14pm UTC](https://phaser.discourse.group/t/resize-bounding-box/4036/1 "2019-10-23T21:14:36Z")

</div>

so I’m trying to get my collision to work & feel a bit better. Problem is the bounding box surrounding my player while it `can` be changed, it does not change for each texture atlas animation. how to do this so it’s an automatic resizing for each texture atlas animation?

---

<div class="post-metadata">

**Author:** ![Thundros](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/thundros/32/2057_2.png) [@Thundros](https://phaser.discourse.group/u/Thundros)\
**Post date:** [October 24, 2019, 2:49am UTC](https://phaser.discourse.group/t/resize-bounding-box/4036/2 "2019-10-24T02:49:54Z")

</div>

figured it out : do this in your update loop :

```
sprite.body.offset.x = 0;
sprite.body.offset.y = 0;
sprite.body.width = sprite.width;
sprite.body.height = sprite.height;

```

🙂
