1
Graphics / Re: revolving a sprite around a circle based on mouse position
« on: August 15, 2021, 07:29:59 am »
Alternatively you could also compute the vector between your (center) sprite and mouse, normalize it, multiply it by the radius of your revolution, then add it to the center of your (center) sprite to get the position of your revolving sprite.
This was huge, I was trying to do this on graph paper but couldn't figure it out. Thanks a bunch!