fix: lag clamping for the server side
This commit is contained in:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user