Archived

This topic is now archived and is closed to further replies.

Player Collisions

This topic is 6362 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

how do you deal with collisions, when two players over a network collide, supposing that each client calculates the collision. i''m thinking that if one client collides, it sends collision info of the other object across the network, so that the immediate position/orientation can be changed. does this sound reasonable, or is there a better solution out there, and where might i find such information if it so exists? a2k

Share this post


Link to post
Share on other sites
the easiest way is probably to have each client deal with its own collision separately. if it is properly debugged, both clients should detect the collision and can handle their response separately.
I hope that''s what you''re asking


*** Sir Reidonius The Red ***

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
It depends upon your networking archiecture, whether your using a peer to peer or server client or a hybrid of both. Peer to peer run in lockstep and so the entire simulation doesnt step unless an acknowldegement is recived from all the other peers, and thus each indivuial can do their own collision as they are guarrented that the other peers have exactly the same data they do. In a server client model, the server usually handles most or all the collisions to prevent possible cheating and it makes synchonization of the clients easier. However some implmeentations do have player to static collsiion on the client side, but that collision isnt transmitted to the other clients its only done to prevent inconsistancies like going through walls if you drop a move packet from the server or something. If your not to worried about consistancy between clients then you can do the full collsiion checks on the client side too, though some games suffer from the invunerablity syndrome, where you fire and hit an individual with all your bullets but they just wont die, because either you''re lagging or they are badly.

Good Luck

-ddn

Share this post


Link to post
Share on other sites