# May I ask what is the difference between absolute coordinates in mesh and regular coordinates in babylonjs

**URL:** <https://forum.babylonjs.com/t/may-i-ask-what-is-the-difference-between-absolute-coordinates-in-mesh-and-regular-coordinates-in-babylonjs/54148>\
**Category:** Questions\
**Tags:** mesh, transformnode\
**Created:** [October 16, 2024, 4:27am UTC](https://forum.babylonjs.com/t/may-i-ask-what-is-the-difference-between-absolute-coordinates-in-mesh-and-regular-coordinates-in-babylonjs/54148 "2024-10-16T04:27:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zertaul](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zertaul/32/37493_2.png) [@zertaul](https://forum.babylonjs.com/u/zertaul)\
**Post date:** [October 16, 2024, 4:27am UTC](https://forum.babylonjs.com/t/may-i-ask-what-is-the-difference-between-absolute-coordinates-in-mesh-and-regular-coordinates-in-babylonjs/54148/1 "2024-10-16T04:27:57Z")

</div>

As the question suggests, when performing translation transformations, which attribute is mainly used for operation? If ordinary translation is used, under what circumstances should absolute coordinates be used

---

<div class="post-metadata">

**Author:** ![HiGreg](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Post date:** [October 16, 2024, 5:02am UTC](https://forum.babylonjs.com/t/may-i-ask-what-is-the-difference-between-absolute-coordinates-in-mesh-and-regular-coordinates-in-babylonjs/54148/2 "2024-10-16T05:02:18Z")

</div>

Absolute, I believe, are in World Space while VerticesData position information is stored in Local Space. The mesh vertices position data is transformed by the GPU into world space through the transformation of all of its ancestors on every frame. I can’t recall whether an individual mesh’s WorldMatrix is representative of all parents, or if it is only the mesh’s matrix itself, still to be transformed by its parents.

A mesh’s absolute vertex position data is the position of each vertex in absolute world space, and is inclusive of all ancestors (parent, parent’s parent, etc.).

---

<div class="post-metadata">

**Author:** ![zertaul](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zertaul/32/37493_2.png) [@zertaul](https://forum.babylonjs.com/u/zertaul)\
**Post date:** [October 16, 2024, 5:35am UTC](https://forum.babylonjs.com/t/may-i-ask-what-is-the-difference-between-absolute-coordinates-in-mesh-and-regular-coordinates-in-babylonjs/54148/3 "2024-10-16T05:35:57Z")

</div>

Can I understand that absolute vertex coordinates are used to render vertices.  
In fact, I did not find any attributes or variables for absolute coordinates in the API on the official website

---

<div class="post-metadata">

**Author:** ![HiGreg](https://avatars.discourse-cdn.com/v4/letter/h/c5a1d2/32.png) [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Post date:** [October 16, 2024, 5:50am UTC](https://forum.babylonjs.com/t/may-i-ask-what-is-the-difference-between-absolute-coordinates-in-mesh-and-regular-coordinates-in-babylonjs/54148/4 "2024-10-16T05:50:28Z")

</div>

Ahh. You’re right. There’s absolutePosition, but not vertex data. See this post for getting absolute vertexdata:

> [@How to get global coordinates of mesh vertices?](https://forum.babylonjs.com/t/how-to-get-global-coordinates-of-mesh-vertices/43036/5):
>
> `BABYLON.VertexData.ExtractFromMesh(box).clone().transform(box.getWorldMatrix());`

Note there is also a “forceCopy” option in Extract that _might_ help avoid the .clone(), but I’m not sure.

---

<div class="post-metadata">

**Author:** ![zertaul](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zertaul/32/37493_2.png) [@zertaul](https://forum.babylonjs.com/u/zertaul)\
**Post date:** [October 16, 2024, 6:11am UTC](https://forum.babylonjs.com/t/may-i-ask-what-is-the-difference-between-absolute-coordinates-in-mesh-and-regular-coordinates-in-babylonjs/54148/5 "2024-10-16T06:11:03Z")

</div>

Okay, thank you very much.
