I'm developing a game using isometric images for the units. Each units has weapons represented in red on the first image below.
To attach animations to the weapons, I have to be able to calculate the position of each of those points after a rotation of X degrees (units move in 8 directions).
The isometric view is set with an angle of 45 degrees top down :
My goal is to find a way to manually spot the red dots on one angle, and then apply a mathematical transformation to get the position of those points for all others angles.
I have no clue on how to approach the problematic and I'd be happy to get some help here !
The 3 images are properly scaled if you want to give it a try.
Here is the first point coordinates in pixels on each image, from the top left corner (0,0) :
Point A - 0 degree rotation : (89,522) Point A - 45 degree rotation : (573,550) Point A - 90 degree rotation : (609,207)
So the goal is to have (89,522) and deduce (573,550) and (609,207) from that.
Thanks a lot !
It seems that a rotation on one frame around a given center point would not work as shown in that picture, probably because of the 45 degree top down angle.