Hey guys,
I have a sprite that was animated by adding bones and geometry with 2D animation version 2.0.0. The sprite is animating great and now i want to add collider to my sprite. But i find that the sprite.vertices are not updated during runtime, which are the initial vertices of the sprite.
How can i get the vertices positions during runtime?
Just tried to get vertices with GetDeformedVertexPositionData() in Update method and assign positions to test spheres: spheres moves in another direction than sprite with real vertices. How can I get global vertices positions?
Solved. It seems that GetDeformedVertexPositionData() returns localPositions relative to SpriteSkin’s transform. Perhaps this should be reflected in the documentation