fix: lag clamping for the server side
This commit is contained in:
parent
15958ad402
commit
875f865bd3
@ -80,7 +80,7 @@ public class PaddleBehaviour(Keys Up, Keys Down, float High, float Low, float Sp
|
|||||||
isUpPressed = packet.IsUpPressed;
|
isUpPressed = packet.IsUpPressed;
|
||||||
isDownPressed = packet.IsDownPressed;
|
isDownPressed = packet.IsDownPressed;
|
||||||
|
|
||||||
physicsEngine2D.StepIndividual(rigidBody, sender.Ping.Min(50));
|
physicsEngine2D.StepIndividual(rigidBody, sender.Ping.Min(.05f));
|
||||||
networkServer?.SendToAll(new PaddleKeyStatePacket(this));
|
networkServer?.SendToAll(new PaddleKeyStatePacket(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user