Dynamics of a tidally disrupted star