In this paper, we propose a control method to achieve three objectives simultaneously: velocity regulation during free motion, impact damping and finally force reference tracking. During impact, the parameters are switched in order to dissipate the energy of the system as fast as possible and the optimal switching criteria are deduced. The possibility of sliding regimes is analysed and the theoretical results are verified in simulations.