Pencil Code Reference > turnto

 

turnto turns the turtle to an absolute direction

turnto is used to turn the turtle toward a position.

Unlike lt and rt, turnto does not depend on the turtle's current rotation. Instead it accepts an object name, position or an absolute angle.

turnto 90 turns the turtle straight right no matter its initial direction.

turnto lastmousemove will turn the turtle to face the mouse.