REV: Added distance-based collision detect.