Unity: Quaternion.LookRotatio简解
public static Quaternion LookRotation(Vector3 forward, Vector3 upwards = Vector3.up);
根据两个方向,生成一个四元数来作为旋转方向。
参数:
forward The direction to look in.
看向的方向
upwards The vector that defines in which direct...
原创
2019-04-08 15:49:49 ·
361 阅读 ·
0 评论