Skip to content
This repository was archived by the owner on Feb 18, 2026. It is now read-only.

Commit f6e4b13

Browse files
committed
position fixed
1 parent 574e130 commit f6e4b13

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Assets/Scripts/growManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private IEnumerator grow()
3535
}
3636
else
3737
{
38-
Vector3 newPosition = findFreePosition(spawn.transform.position, 1.0f, 5);
38+
Vector3 newPosition = findFreePosition(spawn.transform.position, 1.2f, 5);
3939
if (newPosition != Vector3.zero)
4040
{
4141
position = newPosition;
@@ -77,7 +77,7 @@ private Vector3 findFreePosition(Vector3 originalPosition, float radius, int max
7777
Random rnd = new Random();
7878
float randomX = rnd.Next(-60, 80);
7979
float randomZ = rnd.Next(15, 145);
80-
Vector3 newPosition = new Vector3(randomX, -9.6f, randomZ);
80+
Vector3 newPosition = new Vector3(randomX, -8.6f, randomZ);
8181

8282

8383
if (!isPositionOccupied(newPosition))

0 commit comments

Comments
 (0)