Determining Potential Colliders

Determining Potential Colliders

The method by which you chose to do this depends on your dataset, how it抯 organized, how you deal with collisions, and a whole lot more. But here抯 a simple solution that covers most cases:

  1. Find the bounding box of your sphere, centered on the source position
  2. Find the bounding box of your sphere, centered on the destination position
  3. Find the bounding box of those two bounding boxes
  4. Find all polygons that intersect that final bounding box

 

Leave a Reply

Your email address will not be published. Required fields are marked *