0

我知道距离测量半径的距离,但是你怎么能找到乌龟和直接在它们前面的补丁之间的距离(补丁可以根据你正在查看的补丁而变化)谢谢

4

1 回答 1

1

你能解释一下你的意思吗?原始人没有distance得到你想要的吗?例如:

to setup
  ca
  crt 1
  reset-ticks
end

to go
  ask turtles [
    rt random 60 - 30 
    fd 1
    ; Show the distance to the center of 
    ; the patch that is 3 patches away
    print distance patch-ahead 3
  ]
end
于 2018-01-15T02:45:56.437 回答