Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Close Submission failedFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Close Your name Your email Suggestion* Switch to Manualpublic static
Vector3 insideUnitSphere;
DescriptionReturns a random point inside or on a sphere with radius 1.0 (Read Only).
Note that the probability space includes the surface of the sphere because value, which is inclusive to 1.0, is used to acquire a random radius.
using UnityEngine;public class Example : MonoBehaviour { void Start() { // Sets the position to be somewhere inside a sphere // with radius 5 and the center at zero.
transform.position = Random.insideUnitSphere * 5; } }
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4