Though e does not explicitly depend on the masses of the objects, it is important to note that the final velocities are mass-dependent. For two- and three-dimensional collisions of rigid bodies, the velocities used are the components perpendicular to the tangent line/plane at the point of contact, i.e. along the line of impact.