[笔记自用]
首先,测试这两个函数,先解决vector.up和transform.up概念的不同,我之前一直混淆。
通过上述的两个图,得到Vector.up为世界坐标系y轴单位坐标,而transform.up为local坐标系的y轴单位坐标。
1.FromToRotation
然后开始介绍FromToRotation。官方API定义是:
Description :Creates a rotation which rotates from fromDirection to toDirection.
从fromDirection到toDirection