Modeling a flying snake turning