I'm writing a tile engine for a small game and I was just going to define a set of simple collision shapes to go along with each tile set. That way I can just lay out the levels in tiles and let the game build the level geometry off of that tile set. I imagine for single screen scenes this would be alright. But I also want to be able to use this level format for other larger scrolling levels down the road and I imagine the complexity of the level geometry will grow unwieldy as the level size grows.
I was thinking about creating a pre-processing step where this large set of small tile-sized shapes could be merged into larger, simpler shapes to simplify the scene. But then I wondered if it wouldn't just be better to leave the shapes as they are. Does Box2D have a space partitioning system in place that would easily rule out most of those shapes? Would it just be better to leave them alone or should I indeed consider merging and having as few shapes as possible?
Thanks
I was thinking about creating a pre-processing step where this large set of small tile-sized shapes could be merged into larger, simpler shapes to simplify the scene. But then I wondered if it wouldn't just be better to leave the shapes as they are. Does Box2D have a space partitioning system in place that would easily rule out most of those shapes? Would it just be better to leave them alone or should I indeed consider merging and having as few shapes as possible?
Thanks