I\'m currently developing a simple 2D game for Android. I have a stationary object that\'s situated in the center of the screen and I\'m trying to get that object to rotate
with pygame:
dy = p1.y - p2.y dX = p2.x - p1.x rads = atan2(dy,dx) degs = degrees(rads) if degs < 0 : degs +=90
it work for me