# Vertices world position from animated gltf?

**URL:** <https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607>\
**Category:** Questions\
**Created:** [December 20, 2023, 4:23pm UTC](https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607 "2023-12-20T16:23:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JabiK](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JabiK](https://forum.babylonjs.com/u/JabiK)\
**Post date:** [December 20, 2023, 4:23pm UTC](https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607/1 "2023-12-20T16:23:41Z")

</div>

Hello,

I would like to retrieve the world position of every vertex of an animated glTF mesh (via a skeleton).  
Is there a simple function/way to do so ?

Not asking how to load the mesh just the way to retrieve this info. Thank you

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [December 20, 2023, 9:50pm UTC](https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607/2 "2023-12-20T21:50:32Z")

</div>

you would need to use mesh.getPositionData(true, true) to get them in local space and then tranform those with the mesh worldMatrix to get them in world space.

---

<div class="post-metadata">

**Author:** ![JabiK](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JabiK](https://forum.babylonjs.com/u/JabiK)\
**Post date:** [December 22, 2023, 4:42pm UTC](https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607/3 "2023-12-22T16:42:57Z")

</div>

Thank you sebavan, sorry for the delay 😉

---

<div class="post-metadata">

**Author:** ![CodingCrusader](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/codingcrusader/32/29857_2.png) [@CodingCrusader](https://forum.babylonjs.com/u/CodingCrusader)\
**Post date:** [December 23, 2023, 10:11am UTC](https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607/4 "2023-12-23T10:11:40Z")

</div>

Here is a nice demo from @roland.

[BabylonJS Dude Particle Shooter Demo](https://demos.babylonjs.xyz/dude-particle-shooter/#/)

Zoom in and fire to blow the animated vertices away from dude! 🙂

---

<div class="post-metadata">

**Author:** ![JabiK](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@JabiK](https://forum.babylonjs.com/u/JabiK)\
**Post date:** [December 23, 2023, 8:13pm UTC](https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607/5 "2023-12-23T20:13:55Z")

</div>

😃  
I enjoyed that game!

---

<div class="post-metadata">

**Author:** ![CodingCrusader](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/codingcrusader/32/29857_2.png) [@CodingCrusader](https://forum.babylonjs.com/u/CodingCrusader)\
**Post date:** [December 24, 2023, 8:18am UTC](https://forum.babylonjs.com/t/vertices-world-position-from-animated-gltf/46607/6 "2023-12-24T08:18:32Z")

</div>

This is the main logic behind: [Points of an animated mesh](https://playground.babylonjs.com/#SAE2GR)
