Heading in degrees towards a point

towards point

Returns heading of the turtle towards the point expressed in degrees w.r.t. the positive Y axis.

Example:

"t := timer [
  seth towards mousepos
  fd 0.02 * distance mousepos
] 30

Output: turtle that follows the mouse in the graphics window.

See also:

Table of Content