Advanced JS rotation and translation on a any axis
I was recently trying to make a object rotate but as JS works it would just slide out of the way. You might say: "just use translate", but if you want full 360 rotation writing out the translations is possible but very inefficient. To whoever reads this will sort of be a challenge for you. I looked into every option but I couldn't find anything. I need 3 function's where you input the angle and it outputs the x and y of the translation; One for the axis (200, 200), one for (250, 250) and for (300, 300).
I hope this is possible but anyone try's to figure this out, Thank you!
Please sign in to leave a comment.