Translational motion and collision detection added.