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

Re: [pygame] Angle To Target Function



Kris Schnee wrote:
Just thought I'd offer this function, which might be useful for
characters with following behavior. It finds the angle from one point to
another, in degrees, with 0 being "up" and 90 being "right."

The math.atan2() function already does most of this.
You just need to convert the result from radians to
degrees.

--
Greg