Skip to content

Commit

Permalink
Mine beam wobbles
Browse files Browse the repository at this point in the history
  • Loading branch information
MEEPofFaith committed Feb 9, 2025
1 parent 178f98b commit 81b576e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/src/mindustry/type/weapons/MineWeapon.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ public void draw(Unit unit, WeaponMount mount){
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);
Expand Down

0 comments on commit 81b576e

Please sign in to comment.