Beginners Interactive NetLogo Dictionary (BIND)
Farsi / Persian
NetLogo Models Library:
This code example demonstrates how to have a turtle approach a target location a step at a time.
people breed has a variable called
target, which holds the agent the person is moving towards.
face command points the person towards the target.
fd moves the person.
distance measures the distance to the target.
When a person reaches their target, they pick a random new target.