Beginners Interactive NetLogo Dictionary
Farsi / Persian
NetLogo Models Library:
This is an example of how to use the mouse to select and drag multiple turtles.
We use two breeds of turtle:
You might think that the sides of the selection rectangle might better be represented by links. This would work, but it would have two drawbacks:
A third breed of turtles would be required in order to represent the corners of the box (because links must have turtles to connect).
It would work fine in a non-wrapping world, but in a wrapping world, a large selection rectangle would be drawn incorrectly because the sides would use the shortest possible path to connect the corners, and that path would sometimes wrap around the world boundaries.
Mouse Drag One Example