# Change physics body collider

**URL:** <https://phaser.discourse.group/t/change-physics-body-collider/3210>\
**Category:** Phaser 3\
**Created:** [July 23, 2019, 11:14am UTC](https://phaser.discourse.group/t/change-physics-body-collider/3210 "2019-07-23T11:14:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![William\_Soeparjo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/william_soeparjo/32/1406_2.png) [@William\_Soeparjo](https://phaser.discourse.group/u/William_Soeparjo)\
**Post date:** [July 23, 2019, 11:14am UTC](https://phaser.discourse.group/t/change-physics-body-collider/3210/1 "2019-07-23T11:14:43Z")

</div>

I want change physics body collider size and angle.

Currently i developing Bubble shooter game using Phaser 3, but i think it’s not fit (difficult to play) if using box collider, i already change to circle collider ( obj.setCircle(…) ), but the performance are poor.

![sfsdf](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/6/6acca860eab44062e46c9543b69f24d8c928e86d.png)

I have an idea to resize it’s collider size to 70% of it’s sprite size, and rotate it 45 degree.

But i don’t know how to do this with Phaser 3.

Any help ?

---

<div class="post-metadata">

**Author:** ![Jake.Caron](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/jake.caron/32/1841_2.png) [@Jake.Caron](https://phaser.discourse.group/u/Jake.Caron)\
**Post date:** [July 23, 2019, 11:43am UTC](https://phaser.discourse.group/t/change-physics-body-collider/3210/2 "2019-07-23T11:43:10Z")

</div>

Hey William,  
You can change the size of the collider by using: `mySprite.body.setSize(width, height)`.

Unfortunately with the Arcade Physics, you cannot change the angle yet. I’m surprised to hear that setting the colliders to circles hurt your performance. It shouldn’t be too processor intensive.

* * *

Did some benchmarking. It looks like the circle colliders do take up significanly more processing power _ **if you have debug enabled.** _ This makes sense as the draw calls would be much more intensive than drawing a square. @William_Soeparjo, I would suggest using circle colliders, because when your game is released, you won’t have debug enabled.

---

<div class="post-metadata">

**Author:** ![William\_Soeparjo](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/william_soeparjo/32/1406_2.png) [@William\_Soeparjo](https://phaser.discourse.group/u/William_Soeparjo)\
**Post date:** [July 23, 2019, 12:07pm UTC](https://phaser.discourse.group/t/change-physics-body-collider/3210/3 "2019-07-23T12:07:01Z")

</div>

Hi

Thanks for your reply!

I just use Circle collider instead, now it’s don’t have a performance problem, even debug are enabled.

I don’t know why, but it’s good
