Erzadern, Player Pos

This commit is contained in:
Noah
2022-05-17 23:30:12 +02:00
parent f23fc16f0d
commit 2cf099a4d9
6 changed files with 29 additions and 22 deletions
+18
View File
@@ -202,6 +202,24 @@ public class World : MonoBehaviour
//underground pass
if ((int)positionInWorld.y < height)
{
//dirt
if((int)positionInWorld.y > 6 && (int)positionInWorld.y < height - 3)
{
if (noise.Get3DPerlin(positionInWorld, 3, 0.28f, 0.65f))
{
return 2;
}
}
//coal
if((int)positionInWorld.y > 6 && (int)positionInWorld.y < height - 3)
{
if (noise.Get3DPerlin(positionInWorld, 5, 0.28f, 0.65f))
{
return 2;
}
}
//caves
if((int)positionInWorld.y > 6 && (int)positionInWorld.y < height - 8)
{
-7
View File
@@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 940041af630d8d944ac3b74467aa4ae7
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: