Random walk

We will now start with a simple example where a part/body is made by the path from a randomly "walking" voxel or "agent", (100% drunk agent)

Run no.1 - rules:

  • The voxel/agent is moved by an equal probability to one of it's neighbor positions.

Run no.2 - rules:

  • The voxel/agent is moved by an equal probability to one of it's neighbor positions.
  • Voxels are grown to all neighbor positions

Run no.3 - rules:

  • The voxel/agent is moved by an equal probability to one of it's neighbor positions.
  • Voxels are grown in a radius R around the voxel


Tutorial example:

  • Code (NB: no test for out of range in vG, may need to repeat several times)
3:7 - IN5590