Generalize rebound collision swap 5,10 to padding states.