Hi,
I am creating a game that kind of requires the mechanic of arrows in the following game arrow fest (- YouTube). I can’t seem to figure out how to do that arrow grouping and circling? I thought of spawning objects around player in circles and I used the following code
void UpdateCircle()
{
for (int i = 0; i < instantiateList.Count; i++)
{
float angle = i * Mathf.PI * 2f / instantiateList.Count;
Vector3 newPos = new Vector3( Mathf.Cos(angle) * radius , Mathf.Sin(angle) * radius , 0 );
instantiateList*.transform.localPosition = newPos;*
}
}
But it didn’t work as I wanted and in the video. I wanted to ask if there is a better way to achieve such seamless grouping of objects around the player? Any ideas, tips, resources will be appreciated.