afonsolage / projekto

Voxel game made with Bevy Engine
MIT License
59 stars 4 forks source link

Differentiate between chunk local and voxel local #31

Closed afonsolage closed 5 months ago

afonsolage commented 2 years ago

It's very confusing the term local because sometimes it means the chunk local position inside the world and other times it means the voxel local position inside the world.

When using a function that handles both locals, it's very confusing.

Maybe keep local for chunks and name voxel to the local inside chunk.

afonsolage commented 2 years ago

Maybe I should add a Local struct and a Voxel struct to make those concepts even clearer.

afonsolage commented 6 months ago

I've already get rid of Local and changed Chunk just to be a dumb IVec2. Next step is to rename ChunkLocal to ChunkId and done.