I wanted to make Conway's game of life, but in 3D. I went about it using Scriptable Objects and a 3D array for it.
- The game rule is described by a ScriptableObject, allowing you to quickly swap one simulation for another.
- You can add a CellAttribute ScriptableObject to a cell to override the rules for it to make it invulnerable.
You need alot of compute power to run a larger version, as the 3 dimensions cubes the amount of cells. But regardless I am satisfied with how it turned out.
- Switch from 3D array to a longer 1D array.
- Use compute Shader to faster compute the states.
