Tractor Beam Suction multiplies by timescale twice (#6489)

This commit is contained in:
Matthew (or Maya) Peng 2022-01-13 12:28:29 -08:00 committed by GitHub
parent f5701ba3c4
commit 795edb2494
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,7 +127,7 @@ public class TractorBeamTurret extends BaseTurret{
}
any = true;
target.impulseNet(Tmp.v1.set(this).sub(target).limit((force + (1f - target.dst(this) / range) * scaledForce) * edelta() * timeScale));
target.impulseNet(Tmp.v1.set(this).sub(target).limit((force + (1f - target.dst(this) / range) * scaledForce) * edelta()));
}
}else{
strength = Mathf.lerpDelta(strength, 0, 0.1f);