赞
踩
通过两个向量的法向量的点乘的反余弦获取弧度,然后通过弧度获取角度
Mathf.Acos(Vector3.Dot(a.normal,b.normal))* Mathf.Rad2Deg
通过两个向量的法向量的叉乘的模长的反正弦获取弧度,然后通过弧度获取角度
Mathf.Asin(Vector3.Distance(Vector3.zero,Vector3.Cross(a.normal,b.normal)))* Mathf.Rad2Deg
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。