Physics cat 1064 when collision between fix

please write a test for this function