After some time working on a layout, the tool doesnt allow me to edit an intersection anymore and just yeets me into the simulation tab.
Looks like the intersection "works" but i just cant access the edit menu.


This piece of code seems to be the issue:
-- FlatPolyShape.lua
while not p1:closerToThan(self.aabb.center, 400) do
print("2nd while: " .. i)
i = i + 40
if i > size then break end
p1 = lanePoints[i - 1]
end
Specifically the +40, which is outside of the length of lanePoints