chore: added paddle lag compensation for client inputs
This commit is contained in:
parent
afd4ae8327
commit
ceea23c5ae
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user