当前位置:网站首页>Unity find the coordinates of a point on the circle

Unity find the coordinates of a point on the circle

2022-07-05 04:56:00 yoyoHm

 

            float x1 = x0 + r * Mathf.Cos(a * Mathf.PI / 180);
            float y1 =y0 + r * Mathf.Sin(a * Mathf.PI / 180);
            trs_point.localPosition = new Vector2(x1, y1);

原网站

版权声明
本文为[yoyoHm]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140626087920.html