Jump to content
  • Advertisement
Sign in to follow this  

Networked Games and Turning Characters

This topic is 4864 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!