From 848249a6dde9cdc8369b5d179e3b70de5a75b911 Mon Sep 17 00:00:00 2001 From: MEEPofFaith <54301439+MEEPofFaith@users.noreply.github.com> Date: Sat, 8 Feb 2025 21:32:34 -0800 Subject: [PATCH] Consistent engine whites (#10482) --- core/src/mindustry/type/UnitType.java | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index a8d7ddc846..83fb19f6f5 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -1754,29 +1754,30 @@ public class UnitType extends UnlockableContent implements Senseable{ Tmp.v1.set(x, y).rotate(rot); float ex = Tmp.v1.x, ey = Tmp.v1.y; + float rad = (radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale; //engine outlines (cursed?) /*float z = Draw.z(); Draw.z(z - 0.0001f); Draw.color(type.outlineColor); Fill.circle( - unit.x + ex, - unit.y + ey, - (type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale + unit.x + ex, + unit.y + ey, + (type.outlineRadius * Draw.scl + radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale ); Draw.z(z);*/ Draw.color(color); Fill.circle( - unit.x + ex, - unit.y + ey, - (radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale + unit.x + ex, + unit.y + ey, + rad ); Draw.color(type.engineColorInner); Fill.circle( - unit.x + ex - Angles.trnsx(rot + rotation, 1f), - unit.y + ey - Angles.trnsy(rot + rotation, 1f), - (radius + Mathf.absin(Time.time, 2f, radius / 4f)) / 2f * scale + unit.x + ex - Angles.trnsx(rot + rotation, rad / 4f), + unit.y + ey - Angles.trnsy(rot + rotation, rad / 4f), + rad / 2f ); }