📜  球体中的统一随机点 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:11.238000             🧑  作者: Mango

代码示例1
void Start()
    {
        // Sets the position to be somewhere inside a sphere
        // with radius 5 and the center at zero.

        transform.position = Random.insideUnitSphere * 5;
    }