For any particle P that undergoes a collision in the zero-momentum frame, with the coefficient of restitution being e, I have heard it said that
v_{P,f}^* = - e \cdot v_{P,i}^*
where vP,f* is the final velocity of particle P in the zero-momentum frame and vP,i* is the initial velocity of...