Resize world in 3D messes up distance calculations
Closed this issue · 2 comments
qiemem commented
There's already a failing test for this:
Line 103 in af307ea
From the console:
observer> crt 2 [ create-links-with other turtles ]
observer> show [ nw:distance-to one-of other turtles ] of turtles
observer: [1 1]
observer> resize-world -1 1 -1 1 -1 1
observer> crt 2 [ create-links-with other turtles ]
observer> show [ nw:distance-to one-of other turtles ] of turtles
observer: [false false]
Strangely:
observer> show [ nw:turtles-in-radius 1 ] of turtles
observer: [(agentset, 1 turtle) (agentset, 1 turtle)]
qiemem commented
Looks like the context isn't get reset on the resize.
qiemem commented
This happens in 2d as well.