Sign in to follow this  
Raeldor

Networked Games and Turning Characters

Recommended Posts

Hi All, How do client/server games generally deal with the issues of latency when moving and turning characters? I can imagine for moving in a straight line it's pretty straight forward where you can re-calculate the position when either the server or the client receives it by using a latency time. However, it seems a little more complex when you are dealing with turning a character at the same time. Let's say I turn my character say 30 degrees clockwise then this will send a packet to the server with my request to do so. The server though I assume is keeping track of the already moving character and the character on the server is probably ahead of the position that the client's character was in when the request was initiated from the client. Does this mean the server has to do some kind of back-tracking the that position, turn the character and then forward track again to get to the right position? Also, I assume both the client and the server move the character independently for smoothness and that the client repositions the character if it gets a position that is too out-of-sync with it's own internal representation? Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this