How do games like 3D Games Minecraft with a grid handle collisions their are thousands of block divided into chunks each with its own bounding box
how is collision detected calculated and processed
i tried AABB but it didnt work well with each block having its own collider
is their a way to check collision with a WHOLE MESH
this is the crude AABB function i could come up with
bool Entity::AABB(int x, int y, int z) {
return
(x - 1 <= Position.x && x >= Position.x - Size.x) &&
(y - 1 <= Position.y && y >= Position.y - Size.y) &&
(z - 1 <= Position.z && z >= Position.z - Size.z);
}
plz help... Thanks