Hello to all,

I want to reproduce the effect of this game with some scripting.

I have a little track part prefab that I instantiate to a circle track and I am lost in my 2 future goals :

- make the track parts (prefab) joints each other
- make the track moving and undulating like the game

Here is a script I found on this forum :

```
public class Make_Track_Script : MonoBehaviour
{
// Instantiates prefabs in a circle formation
public GameObject prefab;
public int numberOfObjects = 20;
public float radius = 5f;
void Start()
{
for (int i = 0; i < numberOfObjects; i++)
{
float angle = i * Mathf.PI * 2 / numberOfObjects;
float x = Mathf.Cos(angle) * radius;
float z = Mathf.Sin(angle) * radius;
Vector3 pos = transform.position + new Vector3(x, 0, z);
float angleDegrees = -angle*Mathf.Rad2Deg;
Quaternion rot = Quaternion.Euler(0, angleDegrees + 90, 0);
Instantiate(prefab, pos, rot);
}
}
}
```

Thanks a lot for your help (I wrote to the author but the post is 2016).