chore: added paddle lag compensation for client inputs

This commit is contained in:
Syntriax 2025-06-29 16:09:05 +03:00
parent afd4ae8327
commit ceea23c5ae

View File

@ -75,6 +75,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));
networkServer?.SendToAll(new PaddleKeyStatePacket(this)); networkServer?.SendToAll(new PaddleKeyStatePacket(this));
} }