Forum
CS2D Scripts Players rotationPlayers rotation
2 replies 1
Lua's standard library uses angles in radians instead.
To convert an angle from CS2D degrees to standard degrees:
1
2
3
2
3
cs2d_angle_to_std(x) 	return math.rad(x-90) end
1
2
3
2
3
std_angle_to_cs2d(x) 	return math.rad(x+math.pi/2) end
1