I have a mesh that is being animated with a FDD timeline and a few marker points on the mesh whose position I want to track. For example a 300x400 mesh with a point at 150,100. Can I get the position at a given frame the point is now in the deformed mesh? Hope that is clearer than it sounds!
Get point in mesh FDD
- 수정됨
I think you could solve this by matching a bone to that point (just give it the same influences as the mesh point) - and then use a bone follower.
Thanks nimbling, I will look into that approach. I was hoping that I would be able to write a method to return a mesh point's new location, it could be very useful for tracking a sprite to a mesh or even drawing a vector shape based on deformed mesh.
You can access a mesh attachment's vertices from within your code. However, you'll have to figure out the position of the vertex you are interested in in the vertex array. The bone way might be quite a lot easier.