pebble225 / RPG-Game

0 stars 1 forks source link

Chunk access through Modular transform arithmetic vs seperate modular indexing. #9

Closed pebble225 closed 5 months ago

pebble225 commented 5 months ago

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

pebble225 commented 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.

pebble225 commented 5 months ago

I'm more on the side of modular indexing because it interfaces with code that I already established to deal with the world modularity.