mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-10 04:40:10 +07:00
Mine beam wobbles
This commit is contained in:
parent
178f98b6ea
commit
81b576e8d3
@ -56,8 +56,9 @@ public class MineWeapon extends Weapon{
|
||||
weaponRotation = rotation + (rotate ? mount.rotation : 0),
|
||||
wx = unit.x + Angles.trnsx(rotation, x, y) + Angles.trnsx(weaponRotation, 0, -mount.recoil),
|
||||
wy = unit.y + Angles.trnsy(rotation, x, y) + Angles.trnsy(weaponRotation, 0, -mount.recoil),
|
||||
px = wx + Angles.trnsx(weaponRotation, shootX, shootY),
|
||||
py = wy + Angles.trnsy(weaponRotation, shootX, shootY);
|
||||
sY = shootY + Mathf.absin(Time.time, 1.1f, 0.5f),
|
||||
px = wx + Angles.trnsx(weaponRotation, shootX, sY),
|
||||
py = wy + Angles.trnsy(weaponRotation, shootX, sY);
|
||||
|
||||
unit.drawMiningBeam(px, py);
|
||||
Draw.z(z);
|
||||
|
Loading…
Reference in New Issue
Block a user