percentage +=0.001f;
iTween.PutOnPath(gameObject,path,percentage);
//You can cause the object to orient to its path by calculating a spot slightly ahead on the path for a look at target:
//transform.LookAt(iTween.PointOnPath(path,percentage + 0.1f));
iTween.PutOnPath(gameObject,path,percentage);
//You can cause the object to orient to its path by calculating a spot slightly ahead on the path for a look at target:
//transform.LookAt(iTween.PointOnPath(path,percentage + 0.1f));
transform.LookAt(iTween.PointOnPath(path,percentage + 0.5f));
这个当中transform.LookAt(iTween.PointOnPath(path,percentage + 0.5f)); 的0.5f 是计算前后帧的偏移值,才可以让物体进行偏移;
所有就会有倾斜的效果。