I’m designing collision system for my voxel engine. I have no experience with PhysX and Unity collisions. Please, evaluate my solution and possibly suggest improvements.
I plan to use only box colliders for terrain. The main idea is that I’m going to spawn one block size (1m) box colliders only when I need them. So for ex. when a character moves around I will spawn box colliders around it only in its close vicinity. When an item will be dropped to the ground only around it box colliders will be spawned. When characters or items disappear from an area I will remove those box colliders. To my knowledge box colliders are the fastest to create and manipulate. I will not scale or rotate them, only translate. Is this a sound idea? Maybe there is a better solution?