I'm trying to use goto(space(spaceShip.position)); drop(); to store Titanium Ore in my spaceship. For the first ore it works ok, but for next program ignores existence of first one trying to put second ore on place occupied by first one. I'm doing something wrong or space() is broken?
From what I gather, space() searches for a free place that is a circle with given radius (the dist parameter). When a free space is found, it is guaranteed not to have any items within that circle. When searching for a space to drop items, this controls how densely they will be placed. Small radius will result in denser item placement while bigger radius will result in quite a spread. You can see how it works if you add a parameter to space() in CollectTitanium3().
"After three days without programming, life becomes meaningless."
~The Tao of Programming