Linear and quadratic friction torque tau.
tau = c_frict[1]*w + c_frict[2]*abs(w)*w w angular velocity