I created a turtle in NetLogo that moves randomly, and there are some obstacles. Is it possible to get its current direction? I want the turtle to return to the center when it sees an obstacle. I can calculate the distance to the center, but since I do not know its direction, I cannot say, for example, forward or backward.
Ecrin source share