This commit is contained in:
Anuken
2022-05-11 00:44:15 -04:00
parent 24a6ef2bc3
commit 9b33ab3c0a
2 changed files with 6 additions and 5 deletions

View File

@@ -83,7 +83,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
moveAt(Tmp.v2.trns(rotation, vec.len()));
if(!vec.isZero()){
rotation = Angles.moveToward(rotation, vec.angle(), type.rotateSpeed * Math.max(Time.delta, 1));
rotation = Angles.moveToward(rotation, vec.angle(), type.rotateSpeed * Time.delta);
}
}