- Joined
- Sep 26, 2009
- Messages
- 9,534
Hi, I am using SetUnitFlyHeight in my Knockback 2D update, but I can't get it to work right. I wanted to avoid needing to update the height each iteration of the loop, so I adjusted the time frame for the unit to ascend to half the duration of the knockback. Problem is that the unit remains flat, no matter what the height is at.
It occurs to me that the unit is paused, but will that mess up the animation of the fly height? If so, I'll have to move it gradually using Moyack's parabolic function.
By the way, in projectile systems I see GetLocationZ. Will I need that in this knockback system to ensure the knockback is smooth?
It occurs to me that the unit is paused, but will that mess up the animation of the fly height? If so, I'll have to move it gradually using Moyack's parabolic function.
By the way, in projectile systems I see GetLocationZ. Will I need that in this knockback system to ensure the knockback is smooth?