inelastic collision with non-rectangular shapes