Colobot Forum - International Colobot Community
the space() function - Printable Version

+- Colobot Forum - International Colobot Community (
+-- Forum: [Archive] New forum (2015-2019) (
+--- Forum: Colobot/Ceebot and Other EPSITEC Games (
+---- Forum: Help (
+---- Thread: the space() function (/showthread.php?tid=555)

the space() function - Rowery na Księżycu - 01-05-2015

The space() function. In colobot 1.9 /pl.
I've read its SatCom description.
Then I did some tests.
The results made no sense.
It returned points that did not fulfil the requirements specified by the function parameters.
Or points points inside buildings.

Does someone know how it really works?

RE: the space() function - krzys_h - 01-05-2015

I never fully understood parameters of this function. If you use all default values it'll find some free space, enough to leave a portable object there.
You can try with this function I've made a long time ago.
It's not perfect, you can clearly see the circle shape it uses to find positions.