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
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
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
Here is a nice demo from @roland.
BabylonJS Dude Particle Shooter Demo
Zoom in and fire to blow the animated vertices away from dude!
I enjoyed that game!
This is the main logic behind: Points of an animated mesh