Skip to content
Random walk cave generation algorithm example created for Unity
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Assets
Packages
ProjectSettings
.gitignore
LICENSE
README.md

README.md

Random Walk Caves Generator

RWCG (Random Walk Caves generator) is procedural 2D caves generation system written for Unity.

Install Package

Git upm package link https://github.com/vmp1r3/RandomWalkCavesGenerator.git#upm

Cave generation process

Cave generation in Matrix object.

Cave's data is generating inside seperate Matrix object according to size property and pseudorandom algorithm's result. On this stage, matrix is filling recursive by walking to different random directions. Each seed returns same results so if you want to save your result just save seed that you've used to generate cave.

Mesh generation

After matrix is generated, EnvironmentGenerator component, generates separete matrices by slicing main matrix into separete chunks and provides them to the MeshGenerator component which generates Unity's Meshes.

cave 1 cave 2

Normals and separate chunks.

normals chunks

Contacts

Website http://plasticblock.xyz
E-mail contact@plasticblock.xyz.

You can’t perform that action at this time.