modify boundary for friction animation