Client Side Prediction
- by user13842
I have a question regarding Client Side prediction. Ive tried to search topics about my
specific problem but couldn't find anything which really answered my problem.
Most tutorials and explanations assume that the Client sends messages like "Move my player up by 1 Position",
but what if i send messages like "Set my player's velocity to x"?
Since it's hard to explain with text, i made a graphic explaining my problem.
The main problem is, that the player sets his own velocity, due to Client Side Prediction, earlier than the Server.
So if 2 different velocities overlap, the Server would get out of sync.
How can i tackle that problem? Thanks a lot.
Graphic: http://img27.imageshack.us/img27/6083/clientpred.png (Ignore the 5.5cm)