NetLogo Help: move-to

### move-to4.0

#### move-to agent

The turtle sets its x and y coordinates to be the same as the given agent's.

(If that agent is a patch, the effect is to move the turtle to the center of that patch.)

    move-to turtle 5
    ;; turtle moves to same point as turtle 5
    move-to one-of patches
    ;; turtle moves to the center of a random patch
    move-to max-one-of turtles [size]
    ;; turtle moves to same point as biggest turtle

Note that the turtle's heading is unaltered. You may want to use the face command first to orient the turtle in the direction of motion.

See also setxy.

Take me to the full NetLogo Dictionary