# How to change position for a static object in MatterJS

**URL:** <https://phaser.discourse.group/t/how-to-change-position-for-a-static-object-in-matterjs/9377>\
**Category:** Phaser 3\
**Created:** [April 23, 2021, 11:20am UTC](https://phaser.discourse.group/t/how-to-change-position-for-a-static-object-in-matterjs/9377 "2021-04-23T11:20:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Monax](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/monax/32/1898_2.png) [@Monax](https://phaser.discourse.group/u/Monax)\
**Post date:** [April 23, 2021, 11:20am UTC](https://phaser.discourse.group/t/how-to-change-position-for-a-static-object-in-matterjs/9377/1 "2021-04-23T11:20:15Z")

</div>

So, I create a physical object without a sprite like this.  
this.leftWall = this.matter.add.rectangle(0, 0, wallSize, wallSize \* 2, { isStatic: true });  
this.leftWall.position.x = newPos it doesn’t work.  
How can i do this?
