mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-13 01:11:15 -07:00
Condense single use rotation
This commit is contained in:
parent
5a60ab1d2a
commit
caa25b811b
1 changed files with 1 additions and 4 deletions
|
|
@ -96,11 +96,8 @@ public class CraterConveyor extends Block implements Autotiler{
|
|||
if(from.rotation() == 3 && tile.rotation() == 0) a = -1 * 90;
|
||||
if(from.rotation() == 0 && tile.rotation() == 3) a = 4 * 90;
|
||||
|
||||
// rotation
|
||||
float rotation = Mathf.lerp(a, b, Interpolation.smooth.apply(1f - Mathf.clamp(entity.reload * 2, 0f, 1f)));
|
||||
|
||||
// crater
|
||||
Draw.rect(regions[7], Tmp.v1.x, Tmp.v1.y, rotation);
|
||||
Draw.rect(regions[7], Tmp.v1.x, Tmp.v1.y, Mathf.lerp(a, b, Interpolation.smooth.apply(1f - Mathf.clamp(entity.reload * 2, 0f, 1f))));
|
||||
|
||||
// item
|
||||
float size = (itemSize / 2f) + entity.items.total() * 0.1f / (itemCapacity / 8f);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue