Adjusted collision detection and depth testing