Mathf函数错误

Mathf.Cos 传入参数为弧度值,并非角度值,需要将角度转为弧度再传入。 

1 Mathf.Cos(degree * Mathf.Deg2Rad); //degree 为角度值

调试了一下午发现是这里错误,要吐血

猜你喜欢

转载自blog.csdn.net/wk6sae88/article/details/82461618
今日推荐