Skip to content

Commit 81b576e

Browse files
committed
Mine beam wobbles
1 parent 178f98b commit 81b576e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

core/src/mindustry/type/weapons/MineWeapon.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ public void draw(Unit unit, WeaponMount mount){
5656
weaponRotation = rotation + (rotate ? mount.rotation : 0),
5757
wx = unit.x + Angles.trnsx(rotation, x, y) + Angles.trnsx(weaponRotation, 0, -mount.recoil),
5858
wy = unit.y + Angles.trnsy(rotation, x, y) + Angles.trnsy(weaponRotation, 0, -mount.recoil),
59-
px = wx + Angles.trnsx(weaponRotation, shootX, shootY),
60-
py = wy + Angles.trnsy(weaponRotation, shootX, shootY);
59+
sY = shootY + Mathf.absin(Time.time, 1.1f, 0.5f),
60+
px = wx + Angles.trnsx(weaponRotation, shootX, sY),
61+
py = wy + Angles.trnsy(weaponRotation, shootX, sY);
6162

6263
unit.drawMiningBeam(px, py);
6364
Draw.z(z);

0 commit comments

Comments
 (0)