Vertices world position from animated gltf?


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

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.


Thank you sebavan, sorry for the delay :wink:

Here is a nice demo from @roland.

BabylonJS Dude Particle Shooter Demo

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


I enjoyed that game!

1 Like

This is the main logic behind: Points of an animated mesh

1 Like