NetLogo banner

 Home
 Download
 Help
 Resources
 Extensions
 FAQ
 NetLogo Publications
 Contact Us
 Donate

 Models:
 Library
 Community
 Modeling Commons

 User Manuals:
 Web
 Printable
 Chinese
 Czech
 Farsi / Persian
 Japanese
 Spanish

  Donate

NetLogo Models Library:
Code Examples

(back to the library)

Circular Path Example

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

WHAT IS IT?

This shows how to make turtles move along a perfect circle. The first procedure moves turtles based a user-defined distance to be travelled; the second moves then based on a user-defined degree measure.

HOW IT WORKS

We use trigonometry to calculate the turtle's successive positions on the circle.

RELATED MODELS

Turtles Circling

(back to the NetLogo Models Library)