Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Player-Wall collision detection in mmo/online server


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Dansas   Members   -  Reputation: 101

Like
0Likes
Like

Posted 05 February 2013 - 08:03 PM

[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?



Sponsor:

#2 Butabee   Members   -  Reputation: 236

Like
0Likes
Like

Posted 08 February 2013 - 09:28 PM

I think you might have to raycast. Or attach an AABB to the players behind and see if that is colliding with something when they move.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS