Fixed speed multiplier not affecting omni rotation speed
This commit is contained in:
@@ -92,7 +92,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
|||||||
moveAt(Tmp.v2.trns(rotation, vec.len()));
|
moveAt(Tmp.v2.trns(rotation, vec.len()));
|
||||||
|
|
||||||
if(!vec.isZero()){
|
if(!vec.isZero()){
|
||||||
rotation = Angles.moveToward(rotation, vec.angle(), type.rotateSpeed * Time.delta);
|
rotation = Angles.moveToward(rotation, vec.angle(), type.rotateSpeed * Time.delta * speedMultiplier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user