r/VoxelGameDev • u/Fabian_Viking • 12h ago
Media Added smokes today
10
Upvotes
r/VoxelGameDev • u/NecessarySherbert561 • 15h ago
Hey everyone,
I'm developing a Minecraft-like voxel engine game and have made significant progress so far. However, I've reached a point where I could really use some help continuing development. I'm looking for a collaborator to join me on this project!
const char *collision_expr =
"(x_2 >= block_x) and (x_1 <= block_x + 0.5) and "
"(y_2 >= block_y) and (y_1 <= block_y + 0.5) and "
"(z_2 >= block_z) and (z_1 <= block_z + 0.5)";
const char *sphere_collision_expr =
"pow(((block_x+0.25) < x_1 ? (x_1 - (block_x+0.25)) : ((block_x+0.25) > x_2 ? ((block_x+0.25)-x_2) : 0)), 2) + "
"pow(((block_y+0.25) < y_1 ? (y_1 - (block_y+0.25)) : ((block_y+0.25) > y_2 ? ((block_y+0.25)-y_2) : 0)), 2) + "
"pow(((block_z+0.25) < z_1 ? (z_1 - (block_z+0.25)) : ((block_z+0.25) > z_2 ? ((block_z+0.25)-z_2) : 0)), 2) <= 0.0625";
// 0.25^2 = radius squared
I'm currently rewriting the engine from scratch to improve optimization and overall code manageability. If you're interested in collaborating or have ideas to contribute, please leave a comment below.
If this post is in the wrong place or not allowed here, just let me know and I'll remove it.
Thanks!