#algorithms
3 posts
- Schools of Fish That Think as One
The boids algorithm: three simple rules each fish follows on its own add up to a school that moves, turns and scatters as a group.
- Roads That Follow the Land
Connecting the houses with a road network that winds around hills instead of going straight over them, using a minimum spanning tree and A* pathfinding.
- How Rivers Find Their Way
Rivers are placed by simulating water running downhill: filling in pits so everything drains to the sea, then tracing flow from the high ground down.