mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
format base:demo generator script
This commit is contained in:
parent
affc4197be
commit
cd949126b2
1 changed files with 4 additions and 2 deletions
|
|
@ -35,8 +35,10 @@ function place_structures_wide(x, z, w, d, chunk_height)
|
|||
sy = ey
|
||||
sz = ez
|
||||
|
||||
dir_inertia = dir_inertia * 0.8 + (math.random() - 0.5) * math.pow(math.random(), 2) * 8
|
||||
elevation = elevation * 0.9 + (math.random() - 0.4) * (1.0-math.pow(math.random(), 4)) * 8
|
||||
dir_inertia = dir_inertia * 0.8 +
|
||||
(math.random() - 0.5) * math.pow(math.random(), 2) * 8
|
||||
elevation = elevation * 0.9 +
|
||||
(math.random() - 0.4) * (1.0-math.pow(math.random(), 4)) * 8
|
||||
dir = dir + dir_inertia
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue