Added spawnable npcs. Fixed angle-radian convertion functions.

This commit is contained in:
2013-01-22 10:26:58 -04:30
parent 7361223ebf
commit ae7c7d66ed
3 changed files with 140 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ def angle_vectors_2D(vec1, vec2):
return math.atan2(vec2[1], vec2[0]) - math.atan2(vec1[1], vec1[0])
def ang_2_radians(ang):
return ang * (180 / PI)
return (ang * PI) / 180.0
def radians_2_ang(rad):
return rad * (PI / 180)
return (rad * 180.0) / PI