[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Rotating an Image about another Point



Ian Mallett wrote:
I would like to move the blitting point to a location such that, for any rotation, the image appears to rotate around its bottom edge.
-How can one do that?

Find the vector between the centre of the image and the point
you want to rotate it around. Rotate that vector by the same
amount as you're rotating the image, and offset the rotated
image by that amount.

--
Greg