向量夹角的余弦值V
然后弧度转角度,用关键字RadDeg
也可以直接求角度
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
deltatime一般数值在0.02左右浮动
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
unity中在角度中给数字是一般是按照弧度算的,需要转换为角度
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Quaternion的实际应用格式
代码中可以换为更简单的欧拉角形式,效果一样
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
由自然数类型变换为vector3类型
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
标签:欧拉角,RadDeg,基础,角度,--------------------------------------------------------------- From: https://www.cnblogs.com/zys318/p/17400093.html