Posted By

gdvickery on 12/18/09


Tagged

python game 2d


Versions (?)

Get X, Y Heading Based On Degrees


 / Published in: Python
 

  1. import math
  2. hx = math.sin(degrees * (math.pi / 180)) * 1
  3. hy = math.cos(degrees * (math.pi / 180)) * 1

Report this snippet  

You need to login to post a comment.