Horje
how to get object to spawn in a curcle Code Example
how to get object to spawn in a curcle
for (int i = 0; i < numObjects; i++)
{
    float theta = i * 2 * Mathf.PI / numObjects;
    float x = Mathf.Sin(theta)*radius;
    float y = Mathf.Cos(theta)*radius;
  
    GameObject ob = new GameObject();
    ob.transform.parent = transform;
    ob.transform.position = new Vector3(x, y, 0);  
}




Csharp

Related
bit in sql server c# Code Example bit in sql server c# Code Example
get normal from 3 points Code Example get normal from 3 points Code Example
decimal sql  how is  on c# Code Example decimal sql how is on c# Code Example
c# tinyiny Code Example c# tinyiny Code Example
C# Letters Only Code Example C# Letters Only Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9