mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-12-22 23:44:00 +07:00
BuildWeapon fixe (#10339)
This commit is contained in:
parent
b6569f91de
commit
650d008fcc
@ -38,7 +38,7 @@ public class BuildWeapon extends Weapon{
|
||||
mount.aimY = unit.buildPlan().drawy();
|
||||
}else{
|
||||
//aim for front
|
||||
float weaponRotation = unit.rotation - 90;
|
||||
float weaponRotation = unit.rotation - 90 + baseRotation;
|
||||
mount.aimX = unit.x + Angles.trnsx(unit.rotation - 90, x, y) + Angles.trnsx(weaponRotation, this.shootX, this.shootY);
|
||||
mount.aimY = unit.y + Angles.trnsy(unit.rotation - 90, x, y) + Angles.trnsy(weaponRotation, this.shootX, this.shootY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user