z = pow(threshold_radius - radius, 1.1) * -1;

Like by