how to predict?
Hi,
I want to make a simple 2d action jump ''n run shooter with lan multiplayer support. And I just don''t understand how to implement prediction.
Well, I understand that I can predict the new position of a player, if he constantly runs x units per second. With the latency the server can calculate a new sync position for that player. But my player jumps and changes his direction so often. And besides, I don''t really know, who should predict (client, server, both) especially when it comes to drawing bullets and testing if they hit a player...
Customarily the Server calculates collisions (in P2P local calculates collisions, and other peers verify)... but I''m just jumping in to say I want to know about prediction as well.
I''m developing a multiplayer helicopter combat game, and I would like to know how to provide prediction of other player''s movements.
George D. Filiotis
![](http://www.spforge.com/logo.jpg)
I am a signature virus. Please add me to your signature so that I may multiply.
I''m developing a multiplayer helicopter combat game, and I would like to know how to provide prediction of other player''s movements.
George D. Filiotis
![](http://www.spforge.com/logo.jpg)
I am a signature virus. Please add me to your signature so that I may multiply.
Geordi
George D. Filiotis
George D. Filiotis
quote:
I would like to know how to provide prediction of other player''s movements.
Use linear cubic splines for the 3D position, since it is doubtful that helicopters would suddently change trajectory (say, a 90 deg turn at 160mph...). Use splines applied onto quaternions for orientation.
-cb
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement