# Mesh get vertices world position

**URL:** <https://phaser.discourse.group/t/mesh-get-vertices-world-position/9461>\
**Category:** Phaser 3\
**Created:** [May 3, 2021, 4:17pm UTC](https://phaser.discourse.group/t/mesh-get-vertices-world-position/9461 "2021-05-03T16:17:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![demo](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@demo](https://phaser.discourse.group/u/demo)\
**Post date:** [May 3, 2021, 4:17pm UTC](https://phaser.discourse.group/t/mesh-get-vertices-world-position/9461/1 "2021-05-03T16:17:32Z")

</div>

Hy I am trying to get the world position of my mesh vertices, is there an easier way to do that?

const mesh = scene.add.mesh(window.innerWidth/2, window.innerHeight/2, texture);

```
    mesh.addVertices(this.vertices, this.uvs, this.indicies);

    mesh.panZ(7);

    mesh.ignoreDirtyCache = true;

    // mesh.vertices[2].x += 1

    // mesh.vertices[5].x += 1

    console.log(mesh.vertices)

    // for(let i = 0; i<this.vertices.length/2; i++){

    // var control = scene.add.circle(this.vertices[i * 2] * 9, this.vertices[i * 2 + 1] * 9, 40, 0xff00ff)//.setData('vertex', {x: this.vertices[i * 2], y: this.vertices[i * 2 + 1]});

    // control.setInteractive();

    // }
```

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [May 4, 2021, 2:35am UTC](https://phaser.discourse.group/t/mesh-get-vertices-world-position/9461/2 "2021-05-04T02:35:19Z")

</div>

👋

See _final drawn vertex position_ in [Mesh#setDebug()](https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Mesh.html#setDebug).
