diff --git a/Assets/Scripts/ProceduralGeneration.cs b/Assets/Scripts/ProceduralGeneration.cs index 85a8c08..dcd0776 100644 --- a/Assets/Scripts/ProceduralGeneration.cs +++ b/Assets/Scripts/ProceduralGeneration.cs @@ -25,7 +25,7 @@ public class ProceduralGeneration : MonoBehaviour { // configuration: float heightOffset = 10f; - float horizontalDistancePerPlatform = 60; + float horizontalDistancePerPlatform = 10f; // List levelBlocksSpawnTemp = new List(); @@ -42,7 +42,7 @@ public class ProceduralGeneration : MonoBehaviour Vector3 direction = rotation * Vector3.down; Vector3 position = (lastObject.transform.position + (direction * radius)); - levelBlocksSpawnTemp.Add(Instantiate(objToSpawn, new Vector3(position.x, position.y + heightOffset, position.z + (float)(i * heightOffset)), rotation)); + levelBlocksSpawnTemp.Add(Instantiate(objToSpawn, new Vector3(position.x, position.y + heightOffset, position.z + (float)(i * horizontalDistancePerPlatform)), rotation)); } return levelBlocksSpawnTemp;