How to measure distance covered across patches in NetLogo -
i have model setup in netlogo simulation space gis map 20 km radius constructed. the max xcor , ycor set 20 , min xcor , ycor -20. gives torus of 41 x 41. i have agents @ centre of map @ patch 0 0 , want maximum distance can cover 20 km i.e. extent of gis map. ask turtles [ set heading 360 fd 1 ] am right in saying if iterate code 20 times they'll @ centre of last patch (xcor 0 ycor 20) isn't quite 20 km? if that's right, how code agents move appropriate distance. feel i'm trying square circle here. i should can add following line patch scale comes out @ 975.6 set patch-scale (item 1 gis:world-envelope - item 0 gis:world-envelope ) / world-width if multiply patch scale world width 40000 looks right given radius of circle 20 km. thanks globals [km] test ca let extent 40 ;desired world-width, in kilometers set km (world-width / extent) crt 1 [set heading 360] ask turtle 0 [fd (20 * km)] end