Interacting subsystems for depth perception and detour behavior