风向(角度)转成 Vector3

风向如何转成矢量数据

//风向 winDirection
float theta=winDirection*Mathf.PI/180.0f;
float z=-cos(theta)
float x=sin(theta)
posted @ 2022-11-17 19:10  fishpro  阅读(47)  评论(0编辑  收藏  举报