Is there a way to make world partition a 3D grid instead of 2D?

No.
And you need octree to have proper 3d based reduction.

Code a custom system in c++ - or find an engine that has something in place.
For instance:

1 Like