Closes Anuken/Mindustry-Suggestions/issues/4433
This commit is contained in:
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 |
@@ -250,6 +250,8 @@ public class PayloadConveyor extends Block{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void unitOn(Unit unit){
|
public void unitOn(Unit unit){
|
||||||
|
if(!enabled) return;
|
||||||
|
|
||||||
//calculate derivative of units moved last frame
|
//calculate derivative of units moved last frame
|
||||||
float delta = (curInterp - lastInterp) * size * tilesize;
|
float delta = (curInterp - lastInterp) * size * tilesize;
|
||||||
Tmp.v1.trns(rotdeg(), delta * moveForce).scl(1f / Math.max(unit.mass(), 201f));
|
Tmp.v1.trns(rotdeg(), delta * moveForce).scl(1f / Math.max(unit.mass(), 201f));
|
||||||
|
|||||||
Reference in New Issue
Block a user