Restructured the physics engine so that other shape types are supported.