• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

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