Collisions Flashcards
What is collision response
Dealing with the model which decides how objects react after a collision
Usually we detect collisions after it is too late - object is inside a surface
What is backtracking
A type of collision response
We use backtracking which allows us to calculate the collision point by going back, very useful for ray tracking intersecting with an object
What is “fixing”
a type of collision response
actually a hack, projects back to the closest point of the surface
quite inaccurate but much simpler to compute
Complexity of collision detection
The complexity for n dynamics is O(n^2)
(n dynamic objects - not static)
n^2 because we have to do collision checking for every object with each other
- a good method is only checking for collision between close particles
Collision detection: Bounding volumes
Finding intersection between bounding boxes
Generally this is accurate and reduces complexity by replacing all objects with surrounding cube
There are different bounding volumes that can be used for more accuracy
AABB, Sphere, OBB, K-DOP
What is the sphere bounding volume
Placing a sphere around an object
If the spheres do not intersect, then nor do the objects within
Spheres allow faster algorithm for checking intersection
Hierarchical modeling for collisions:
After we have a collision
We can recursively add smaller spheres within the bounding sphere in a particular place - becomes more and more accurate
So we can limit the search area and detail to just where the collision is occurring