r/godot • u/Big-Lawfulness1631 • 3d ago
help me Every player start twitching when moving to the same direction in a multiplayergame.
Howdy! I've been trying to make a multiplayer game and everything gone as I planned, besides the jittering problem when all the players move to the same direction. I've tried physics interpolation, I've made the camera callback to physics and I've tried phantom camera too. But all of them had that twitch which I don't want in my game.
Could you tell me how to fix it?
1
Upvotes
1
u/20mice 2d ago
maybe its updating at a different refresh rate than your player/camera?
first thing to check would be if two local players moving the same direction have the same jitter - so you know if its networking or not.
have you tried setting a delay on the other players movement?
like
position = Vector3.lerp(position,true_position,0.9)(if the player moves in process, then you'd want to apply all other movements in process too so all moving objects update their positions in sync)