mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-17 19:45:23 -04:00
cavePos.z and cavePos.y are swapped, leading to caves that generate extending vertically instead of horizontally.
parent
02c1c452a9
commit
f8d6027297
@ -110,8 +110,8 @@ Let caveRadius be randomFloat() * randomFloat()
|
|||||||
|
|
||||||
for len in caveLength {
|
for len in caveLength {
|
||||||
set cavePos.x to previous value + sin(theta) * cos(phi)
|
set cavePos.x to previous value + sin(theta) * cos(phi)
|
||||||
set cavePos.y to previous value + cos(theta) * cos(phi)
|
set cavePos.z to previous value + cos(theta) * cos(phi)
|
||||||
set cavePos.z to previous value + sin(phi)
|
set cavePos.y to previous value + sin(phi)
|
||||||
|
|
||||||
set theta to previous value + deltaTheta * 0.2
|
set theta to previous value + deltaTheta * 0.2
|
||||||
set deltaTheta to (previous value * 0.9) + randomFloat() - randomFloat()
|
set deltaTheta to (previous value * 0.9) + randomFloat() - randomFloat()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user