Implementation of 2d physics and collision functionality in XNA.