Optimized collision with objects