Minor payload acceptor fixes
This commit is contained in:
@@ -95,7 +95,7 @@ public class PayloadAcceptor extends Block{
|
|||||||
updatePayload();
|
updatePayload();
|
||||||
|
|
||||||
payRotation = Mathf.slerpDelta(payRotation, rotate ? rotdeg() : 90f, 0.3f);
|
payRotation = Mathf.slerpDelta(payRotation, rotate ? rotdeg() : 90f, 0.3f);
|
||||||
payVector.approachDelta(Vec2.ZERO, payloadSpeed);
|
payVector.approach(Vec2.ZERO, payloadSpeed * delta());
|
||||||
|
|
||||||
return hasArrived();
|
return hasArrived();
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ public class PayloadAcceptor extends Block{
|
|||||||
|
|
||||||
updatePayload();
|
updatePayload();
|
||||||
|
|
||||||
payVector.trns(rotdeg(), payVector.len() + edelta() * payloadSpeed);
|
payVector.trns(rotdeg(), payVector.len() + delta() * payloadSpeed);
|
||||||
payRotation = rotdeg();
|
payRotation = rotdeg();
|
||||||
|
|
||||||
if(payVector.len() >= size * tilesize/2f){
|
if(payVector.len() >= size * tilesize/2f){
|
||||||
|
|||||||
Reference in New Issue
Block a user