Have fun with your painful memories.
This physics engine is so well done, and so complex, that I was blindly stumbling around while coding this, just trying to figure out where I should put what code. In the process, I somehow halved the performance, so sorry about that.