Home Download Help Forum Resources Extensions FAQ NetLogo Publications Contact Us Donate Models: Library Community Modeling Commons Beginners Interactive NetLogo Dictionary (BIND) NetLogo Dictionary User Manuals: Web Printable Chinese Czech Farsi / Persian Japanese Spanish
|
NetLogo Models Library: |
If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web |
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
(back to the NetLogo Models Library)