Sign in to follow this  

Player-Wall collision detection in mmo/online server

Recommended Posts

[This is related to collisions, so I am assuming this is the correct forum]

Let's assume the following:

  • I have a server which stores the player's position (float x, float y, float z) [Don't worry about precision... just simplifying]
  • Client sends the server it's updated position ever 250ms or so.
  • Server has bounding boxes for all buildings & players ( Let's say each wall has it's own AABB or OBB. Do not assume a "tight" fit)
  • For broad-phase collision detection, I use spatial hashing based on the bounding boxes.
  • Client does full-on triangle level collisions locally.

My question: - How can I quick calculate if a player has passed through a wall on the server only using AABBs or OBBs. Or, is there no way to do that without going to triangle-level collision detection. Maybe some other data structure? Any help would be appreciated - storing something else other than AABBs or OBBs?

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