fix: lag clamping for the server side

This commit is contained in:
Syntriax 2025-07-05 22:20:41 +03:00
parent 15958ad402
commit 875f865bd3

View File

@ -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));
} }