Added rotation to the generic movement script.