Transform与Vector3 的API

Transform.InverseTransformDirection(Vector3 direction)

Vector3.ProjectOnPlane(Vector3 vector, Vector3 planeNormal)

第一个API,是将 一个世界坐标系的 向量 转换 为 transform 本地坐标的向量

第二个API,是将一个vector 向量投影 到 法线 planeNormal 所在平面。

猜你喜欢

转载自www.cnblogs.com/leiGameDesigner/p/9069707.html
今日推荐