Closes Anuken/Mindustry-Suggestions/issues/4433

This commit is contained in:
Anuken 2023-05-22 14:28:10 -04:00
parent bf320a98b8
commit c4b1df9526
3 changed files with 2 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 383 B

View File

@ -250,6 +250,8 @@ public class PayloadConveyor extends Block{
@Override
public void unitOn(Unit unit){
if(!enabled) return;
//calculate derivative of units moved last frame
float delta = (curInterp - lastInterp) * size * tilesize;
Tmp.v1.trns(rotdeg(), delta * moveForce).scl(1f / Math.max(unit.mass(), 201f));