Closed pebble225 closed 5 months ago
If there is a small chance of a rounding error, does it really ensure that a valid coordinate is returned? It sounds like a contradiction.
I'm more on the side of modular indexing because it interfaces with code that I already established to deal with the world modularity.
Chunks are going to be accessed around the chunk where the camera is positioned. Should those chunks be accessed by using integer arithmetic from the chunk index that is found by the camera or should multiple modular transforms be derived and all of those chunks are calculated individually?
Integer indexing pros
Integer indexing cons
Modular indexing pros
Modular indexing cons