Skip to main content

CircularSpawnPointGenerator

A class in Root.Township, Alta.Populations.

A spawn area that gives random points in a flat circle around its transform. Height is the transform's, with no ground check.

Constructors​

MemberWhat it is
CircularSpawnPointGenerator()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

1 private and internal field
MemberWhat it is
private float radiusCircle radius in metres.

Methods​

MemberWhat it is
override Vector3 GetRandomSpawnPosition()A random point inside the circle of radius around the transform, at the transform's height.
1 private and internal method
MemberWhat it is
private void OnDrawGizmosSelected()Empty.