Consistent engine whites (#10482)
This commit is contained in:
@@ -1754,6 +1754,7 @@ public class UnitType extends UnlockableContent implements Senseable{
|
|||||||
|
|
||||||
Tmp.v1.set(x, y).rotate(rot);
|
Tmp.v1.set(x, y).rotate(rot);
|
||||||
float ex = Tmp.v1.x, ey = Tmp.v1.y;
|
float ex = Tmp.v1.x, ey = Tmp.v1.y;
|
||||||
|
float rad = (radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale;
|
||||||
|
|
||||||
//engine outlines (cursed?)
|
//engine outlines (cursed?)
|
||||||
/*float z = Draw.z();
|
/*float z = Draw.z();
|
||||||
@@ -1770,13 +1771,13 @@ public class UnitType extends UnlockableContent implements Senseable{
|
|||||||
Fill.circle(
|
Fill.circle(
|
||||||
unit.x + ex,
|
unit.x + ex,
|
||||||
unit.y + ey,
|
unit.y + ey,
|
||||||
(radius + Mathf.absin(Time.time, 2f, radius / 4f)) * scale
|
rad
|
||||||
);
|
);
|
||||||
Draw.color(type.engineColorInner);
|
Draw.color(type.engineColorInner);
|
||||||
Fill.circle(
|
Fill.circle(
|
||||||
unit.x + ex - Angles.trnsx(rot + rotation, 1f),
|
unit.x + ex - Angles.trnsx(rot + rotation, rad / 4f),
|
||||||
unit.y + ey - Angles.trnsy(rot + rotation, 1f),
|
unit.y + ey - Angles.trnsy(rot + rotation, rad / 4f),
|
||||||
(radius + Mathf.absin(Time.time, 2f, radius / 4f)) / 2f * scale
|
rad / 2f
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user