kpreid / all-is-cubes

Yet another block/voxel game; in this one the blocks are made out of blocks. Runs in browsers on WebGL+WebAssembly.
https://kpreid.dreamwidth.org/tag/all+is+cubes
Apache License 2.0
147 stars 8 forks source link

`GridAab` isn't overflow-free yet #498

Open kpreid opened 1 week ago

kpreid commented 1 week ago

I removed the volume limit from GridAab, but it still has unrepresentable boxes, because it is represented in terms of origin and size, and the sizes as i32, not u32.

We need to either make the size u32 or store upper bounds instead of sizes. Probably upper bounds will lead to cleaner code.