Dynamics of cell orientation