Optimized Collision Detection