Skip to content

Collision Resolution #245

Answered by RossNordby
asherhe asked this question in Q&A
Discussion options

You must be logged in to vote

At a high level:

  1. Broad phase finds collision pairs that might be touching by comparing bounding boxes. A bounding volume hierarchy is used to accelerate testing.
  2. Pairs with overlapping bounds are handed off to the CollisionBatcher. It waits until there are enough pairs of a given type (for example, box vs cylinder, or sphere vs capsule) and then dispatches a batched test over all the pairs in the batch. Those batched tests can be internally vectorized for better performance.
  3. The collision batcher outputs contacts for each pair. Contacts contain information like the offset from the involved bodies to the contact point, the surface normal at the contact point, and the penetration depth at …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by asherhe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants