留个档,计算圆上的一个点

已知圆心,半径,角度,求圆上的一个点

懒得百度,自己留个档

        Vector3 result = Vector3.zero;
        result.x = pos.x + nRadius * Mathf.Cos(nAngle * Mathf.PI / (float)180);
        result.z = pos.z + nRadius * Mathf.Sin(nAngle * Mathf.PI / (float)180);
        return result;

程序学无止尽。
欢迎大家沟通,有啥不明确的,或者不对的,也可以和我私聊
我的QQ 334524067 神一般的狄狄

猜你喜欢

转载自blog.csdn.net/qq_37776196/article/details/117064013