# Scaling Matter body

**URL:** <https://phaser.discourse.group/t/scaling-matter-body/10123>\
**Category:** Phaser 3\
**Created:** [August 16, 2021, 7:53pm UTC](https://phaser.discourse.group/t/scaling-matter-body/10123 "2021-08-16T19:53:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Durin](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/durin/32/5505_2.png) [@Durin](https://phaser.discourse.group/u/Durin)\
**Post date:** [August 16, 2021, 7:53pm UTC](https://phaser.discourse.group/t/scaling-matter-body/10123/1 "2021-08-16T19:53:31Z")

</div>

Hello!

I need to check a collision that is located between two moving points, so that game objects cannot go between them and would be reflected. The way I solve it is to make a rectangle Matter body in between two points that dynamically changes scale. The problem is that when I try to change scale only on one axis the collider appears deformed and rotated out of the image is it on.

```javascript
this.scale += 1;
this.block.setScale(this.scale, 5);

```

Is there a way to scale object only in one axis without deforming it?  
Is there a better alternative for creating a dynamic space between two moving points?

Thank you in advance.
