collision detection and distance computations
