mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-10 18:57:39 +07:00
Closes Anuken/Mindustry-Suggestions/issues/4433
This commit is contained in:
parent
bf320a98b8
commit
c4b1df9526
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
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user