Rapid impingement detection and surface distance measurement system for real-time ball-and-socket joint motion simulation. (29th June 2009)