As has been done before, and will be done a million times more.
Simple physics framework. Bare-bones implementation for collision detection