Hi, I have some questions about sprite.
I loaded a sprite image in the scene named tree and wanted to move it to the position of mesh M (part of a imported model). I have tried
tree.position = M.position
and
tree.position = M.absolutePosition
to do that. but the position of model M is transformed according to a TransformNode named root, including rotation transformation, while the class Sprite only has position attribute, no rotation and parent attributes, so I don’t know how to assign the precise position of M to the sprite.
So, what can I do to solve it?