• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

World Vs Chunk

Umbrella

Refugee
Hello,

I can see some duplicate methods in classes World and Chunk (eg GetTerrainNormalAt, GetBlock), so I wonder:

1) Are they conceptually the same (Chunk version being restricted to some chunk of the world) ?

2) Using chunk sounds more tedious

- There are multiple chunks around player position

- Any coordinate-system conversion to perform ? Does Chunk.foo(position) matches World.foo(position), or do I need apply offset of the Chunk position ?

So are there performance penalty in using World (would considerate larger data when searching) ?

Thank you !

 
Back
Top