mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-14 01:37:36 +07:00
Trail experiment
This commit is contained in:
@ -542,7 +542,11 @@ public class DesktopInput extends InputHandler{
|
||||
unit.lookAt(mouseAngle);
|
||||
}else{
|
||||
if(!unit.vel().isZero(0.01f)){
|
||||
unit.lookAt(unit.vel().angle());
|
||||
if(unit.type().flying){
|
||||
unit.rotation(unit.vel().angle());
|
||||
}else{
|
||||
unit.lookAt(unit.vel().angle());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user