Hi, I am currently creating 2D side-scroller game with an almost infinite terrain.
You can see my previous question to see how the world is setup.
I’ve implemented a box collider for my initial collision solution, and my idea was something like this picture below.
So each map chunk consists of 1 large mesh and lots of box colliders. I mean lots.
Each chunk has 48x48 tiles, and each tile gets a box collider. yuck.
This solution doesn’t work because, it takes way too much overhead to initialize all the box colliders when player just wants to wonder the map from left to right.
This is 10 chunks by 10 chunks map, which loads up in like a second.
Converting this mesh into mesh collider only adds a little overhead. With box colliders, it takes … forever.
How could I do 2D collisions in a case like this??
Please help me out.