NetLogo Models Library:
Note: If you download the NetLogo application, every model in the Models Library is included.
This example shows make a terrain in 3D and move turtles across the terrain. This is much like the Hill Climbing Example in 2D. However, the elevation variation in the terrain is visible in the 3D space.
The hill climbing code is very similar to
uphill in 2D. However, we want the turtles to look at the link neighbors of the stayer here rather than the patch neighbors.
Note that terrain models are not full 3D models. Each spot on the landscape only has eight neighbors; we use links to indicate the neighbors of each location since it cannot be determined spatially. We do, however, use the 3D space to display the height of each location.