From hydrodynamics to N-body simulations of star clusters: mergers and rotation