lerp -> slerp

This commit is contained in:
Anuken
2018-06-20 22:57:22 -04:00
parent ca30f49481
commit 21238e7376

View File

@@ -54,7 +54,7 @@ public abstract class GroundUnit extends BaseUnit {
super.update();
if(!velocity.isZero(0.001f) && (target == null || (inventory.hasAmmo() && distanceTo(target) <= inventory.getAmmoRange()))){
rotation = Mathf.lerpDelta(rotation, velocity.angle(), 0.2f);
rotation = Mathf.slerpDelta(rotation, velocity.angle(), 0.2f);
}
}