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

Re: [pygame] car game mechanics




On Aug 30, 2011 10:46 AM, "Nathan BIAGINI" <nathan.open@xxxxxxxxx> wrote:

>> a_rad = math.asin(speedx/SPEED)

Try math.atan2, feeding it both the x and y components of the velocity.