Hello,
I have 2 spine projects. One contains character and second one contains vfx for this character.
I got "target" bone in on of vfx to move end position of lighting strike. It works fine in Spine I move this bone and it moves the end of lighting strike, but when I exported it to game and try to calculate this bone position everything is messed up.
I tried to get monster "x" and "y" from canvas and use comand temp1.skeleton.findBone('S3-lightning').worldToLocal({x: monsterX, y: monsterY}) , but it gives me strange positions that leads to diffrent places than monster really is.
What is "world" in this context and how I can convert monster "x" and "y" to spine local?
WorldToLocal returns random numbers with same coordinates: