CSE 291D Project Demo
Rigid Body Engine

Collision Detection:
-
Construct a bounding sphere for every object
-
First check bounding sphere interception
-
Then use Separate Principle Axis Theorem to check object interception
Impulse-based Collision Response:
-
Use the contact points computed from the collision detection step
-
For each contact point, start from the point with the highest colliding velocity:
-
Compute inverse mass matrix for the offset point
-
Compute impulse to correct the velocity (Nonconvex Rigid Bodies with Stacking, Eran Guendelman et al)
-
Update other point’s velocity based on the impulse applied on this point
-
-
Recursively fix every contact point velocity so that every point has a velocity separating the colliding objects
Blue spheres are fixed -- their velocities and positions are not updated. Yellow sphere drops and collides with blue spheres. The collision impulse generated between the left and right blue spheres balances out and keeps the yellow sphere rest in the middle.
The ball rolls down from each blue sphere. The friction slows the ball down but does not prevent it to slide and fall.