# Texture not at the same place when using setParts

**URL:** <https://phaser.discourse.group/t/texture-not-at-the-same-place-when-using-setparts/10214>\
**Category:** Phaser 3\
**Created:** [September 4, 2021, 2:43pm UTC](https://phaser.discourse.group/t/texture-not-at-the-same-place-when-using-setparts/10214 "2021-09-04T14:43:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julian103](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Julian103](https://phaser.discourse.group/u/Julian103)\
**Post date:** [September 4, 2021, 2:43pm UTC](https://phaser.discourse.group/t/texture-not-at-the-same-place-when-using-setparts/10214/1 "2021-09-04T14:43:35Z")

</div>

Hello, as you can see on the screenshot there is a problem with the position of the texture when i use setParts from Phaser.Physics.Matter.Matter.Body, the body and the texture are not at the same place. It works fine only if i declare the body shape at the creation of the sprite like in the screenshot 1.

Screenshot 1:

`this.matter.add.sprite(3600, 2400, 'skyship', 'spaceship31', {shape: shapes.spaceship31})`

Screenshot 2:

`BodyMa.setParts(ships[i].body, ParserMa.parseVertices(shapes["spaceship31"].fixtures[0].vertices))`

How can i solve this problem ? or what is the best practice to change the shape of my body without recreating it ?

Thanks.

 ![1](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/a/aa0915f33935b74256fb2f772d004534ee644dc4.jpeg)  
 ![2](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/1/1e2c3852b8d14eb54607fe374e68ad49a7a66607.jpeg)

---

<div class="post-metadata">

**Author:** ![Julian103](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Julian103](https://phaser.discourse.group/u/Julian103)\
**Post date:** [September 4, 2021, 6:16pm UTC](https://phaser.discourse.group/t/texture-not-at-the-same-place-when-using-setparts/10214/2 "2021-09-04T18:16:14Z")

</div>

Finally i found a solution using setBody to load my physics from PhysicsEditor.

```javascript
ships[i].setBody(shapes["spaceship"+shipFrame]);

```
