Doomhammer
Bob Kotick - Gamers' corporate spoilsport No. 1
- Reaction score
- 67
with SetUnitFacing and SetUnitFacingTimed, the facing of a unit can be changed. I assume that per call of this function we can at maximum rotate the unit 359 degrees. Is that correct?
Now, let#s say we do this with a timer, then the maximum angle speed that can be achieved should be < 360 / timer_frequency
let's say, I call a timer every 0.04 seconds, then a maximum of close to 25 rotations per second should be achievable. Yet the spin speed I get in game looks nowhere near 25 (rather looks like a 1-2 rotations/sec)
Where's my mistake? Any ideas how to make units spin fast?
Now, let#s say we do this with a timer, then the maximum angle speed that can be achieved should be < 360 / timer_frequency
let's say, I call a timer every 0.04 seconds, then a maximum of close to 25 rotations per second should be achievable. Yet the spin speed I get in game looks nowhere near 25 (rather looks like a 1-2 rotations/sec)
JASS:
function timer_child takes nothing returns nothing
//
call SetUnitFacing(u, GetUnitFacing(u)+359)
//
endfunction
Where's my mistake? Any ideas how to make units spin fast?