Hi, I’m trying to get the vertex position of an animated mesh while the animation is running. My PG is showing a static value, can anyone help ? Alternatively, point me to the corresponding doc/api will also do. Many thanks.
The vertex data will forever stay the same (unless YOU change it deliberately ) And it is not influenced by the transformation you are applied to your mesh. So I would always recommend against it.
If you want to know the position of the object you can use its position or getAbsolutePosition() function. But since this is an animated skeleton, you will want the position of its bones. This is a very naive example of how to use it - https://www.babylonjs-playground.com/#JINL3I#1 . There are of course much better ways .
You can read more about bones and skeletons in the documentation
https://doc.babylonjs.com/how_to/how_to_use_bones_and_skeletons
1 Like
Awesome, I got it. Tada!
PG: https://www.babylonjs-playground.com/#JINL3I#2
3 Likes