Page 1 of 1

Question about chunk positions

Posted: Sat Sep 03, 2016 8:52 pm
by orzelek
I'm looking at docs for those two functions:
API docs wrote:is_chunk_generated(position) → boolean
Is a given chunk generated?

Parameters
position :: Position: The chunk's position.
request_to_generate_chunks(position, radius)
Request that the game's map generator generate chunks at the given position for the given radius on this surface.

Parameters
position :: Position: Where to generate the new chunks.
radius :: uint: Radius from position to generate new chunks in.
I have a question - how I should send positions to those functions?
Do they take tile coordinates and convert them to chunks or they need chunk based coordinates?

Re: Question about chunk positions

Posted: Sun Sep 04, 2016 7:47 pm
by aubergine18
I've only dabbled with chunks but from what I've tried so far it seems you just send a normal position and the game works out which chunk it's in.