Move the turtles
to the agents
' locations.
moveTo(turtles, agents) # S4 method for agentMatrix,matrix moveTo(turtles, agents)
turtles 


agents  Matrix (

AgentMatrix
representing the turtles
with updated coordinates
and updated data for their previous coordinates prevX
and prevY
.
The number of agents
must be equal to 1 or to
length turtles
.
The turtle
's headings
are not affected with this function.
If a turtle
is moving to a patch
location, it will be located at
the patch
center.
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and ComputerBased Modeling, Northwestern University. Evanston, IL.
w1 < createWorld(minPxcor = 0, maxPxcor = 9, minPycor = 0, maxPycor = 9, data = runif(100)) t1 < createTurtles(n = 5, coords = randomXYcor(w1, n = 5)) plot(w1)