Alright so I combined that formula to find the sword’s tip
xNew = cos * (x - O.x) - sin * (y - O.y) + O.x
yNew = sin * (x - O.x) + cos * (y - O.y) + O.y
With my polygon idea and it works AMAZING! I can’t wait to show you guys how it looks ![:smiley: :smiley:](https://www.jvm-gaming.org/images/emoji/twitter/smiley.png?v=9)
So now the sword can rotate and translate and the swipe will follow, but there is still one thing.
I have to find the formula to find the position of the tip of the sword after TWO rotation with DIFFERENT centre points, and has always, an image is better to explain.
http://image.noelshack.com/fichiers/2015/34/1439809576-rotation2.png
So first of all, look at the blue sword, it’s tip’s position is A
Then it rotate 45° with the BLUE dot as the centre point, it’s tip’s position is now B
Then it rotate 45° with now GREEN dot as the centre point, the tip position is now C.
And the question is what is the formula that return C? I tried multiple things with the above formula but none of my tries worked so I hope you are better at maths than me ;D