towards-pitch4.1 towards-pitch-nowrap4.1

towards-pitch agent towards-pitch-nowrap agent Turtle Command Patch Command

Reports the pitch from this agent to the given agent.

If the wrapped distance (around the edges of the screen) is shorter than the on-screen distance, towards-pitch will report the pitch of the wrapped path. towards-pitch-nowrap never uses the wrapped path.

Note: In order to get one turtle to face another you need to use both towards-pitch and towards.

Note: asking for the pitch from an agent to itself, or an agent on the same location, will cause a runtime error.

See also towards

Take me to the full NetLogo Dictionary