Obtaining smooth ball physics?

This is how I-want it to move (video not mine)

This is how it moves

Yes I replicated the physics on every one’s client. When kicking I put the send for all players

But it’s still not good ENOUGH. I any it maximum smooth

You can potentially make this extremely complicated but the you basically need to consider what information is where at what time. When the player touches the ball, on their screen you could show them kicking it right away. Other players will have to see it delayed, but both the character and the ball will be delayed the same, so its fine.
What you have currently is the ball being kicked on the server. This looks the same to other players, but to the player kicking theres twice as much delay and thats the jank you see.
You can use a remote event to fix this. When the player touches the ball, have a local script do the kick immediately, remember exactly how it was kicked. Send that information to the server. It will arrive at about the same time as the server would detect the collision itself, but use a server script to ignore that and instead execute the kick described in the remote.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.