1
0
Fork 0

Add note about quick_rotate_45 actually rotating 11.25 degrees

This commit is contained in:
jordan4ibanez 2021-04-17 12:37:04 -04:00
parent e8148f81ab
commit 240d6ea211
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ local THIRTY_SECONDTH_PI = DOUBLE_PI * 0.03125
--a simple helper function which is too small to move into movement.lua --a simple helper function which is too small to move into movement.lua
--this rotates 11.25 degrees, probably should rename it eventually
local quick_rotate_45 = function(self,dtime) local quick_rotate_45 = function(self,dtime)
self.yaw = self.yaw + THIRTY_SECONDTH_PI self.yaw = self.yaw + THIRTY_SECONDTH_PI
if self.yaw > DOUBLE_PI then if self.yaw > DOUBLE_PI then