mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-06 22:21:07 -07:00
Fixed units moving faster at high FPS
This commit is contained in:
parent
ffa1aae27c
commit
2a3cc3d88c
1 changed files with 2 additions and 2 deletions
|
|
@ -272,7 +272,7 @@ public abstract class GroundUnit extends BaseUnit{
|
|||
|
||||
float angle = angleTo(targetTile);
|
||||
|
||||
velocity.add(vec.trns(angleTo(targetTile), type.speed));
|
||||
velocity.add(vec.trns(angleTo(targetTile), type.speed*Timers.delta()));
|
||||
rotation = Mathf.slerpDelta(rotation, angle, type.rotatespeed);
|
||||
}
|
||||
|
||||
|
|
@ -296,7 +296,7 @@ public abstract class GroundUnit extends BaseUnit{
|
|||
|
||||
float angle = angleTo(targetTile);
|
||||
|
||||
velocity.add(vec.trns(angleTo(targetTile), type.speed));
|
||||
velocity.add(vec.trns(angleTo(targetTile), type.speed*Timers.delta()));
|
||||
rotation = Mathf.slerpDelta(rotation, angle, type.rotatespeed);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue