I haven't a clue whether or not this should be in the 'Games...' forum or not, but here goes. My question has a few parts. The first part has to do with the design as it stands now.
Design (as of now):
A)The 'world' is divided into 'N' number of sections.
B)Within the world (and more specifically within each section) reside objects that are connected to the graphics engine, the physics engine and the data engine
C)All sections (hereafter 'level') start in 'sleep mode' until activated by a game event of some sort (usually the player enters the level and it becomes active). Active/sleep is in terms of Box2D active/sleep
D)Each level, except for stairways, elevators, teleporters, holes in the ground/ceiling, etc, is a completely seperate entity from all other levels.
The next part has to do with expected loads:
A) There are going to be a lot of objects flying around at high speeds on each level. Generally speaking only bullets fit this description. <smile> Sometimes units/players/enemies fit this description too.
B) There are going to be a lot of objects moving around running AI scripts (for now, the 'script's are hardcoded) on each level.
So now, the question. Should I implement a seperate physics engine for each level... or just use collision filtering and pack everything into one engine (which is how the design reads now)? This could be a matter of preference, but I didn't design Box2D and I haven't a clue what kind of load it can/should take.
-CodePaladin
Design (as of now):
A)The 'world' is divided into 'N' number of sections.
B)Within the world (and more specifically within each section) reside objects that are connected to the graphics engine, the physics engine and the data engine
C)All sections (hereafter 'level') start in 'sleep mode' until activated by a game event of some sort (usually the player enters the level and it becomes active). Active/sleep is in terms of Box2D active/sleep
D)Each level, except for stairways, elevators, teleporters, holes in the ground/ceiling, etc, is a completely seperate entity from all other levels.
The next part has to do with expected loads:
A) There are going to be a lot of objects flying around at high speeds on each level. Generally speaking only bullets fit this description. <smile> Sometimes units/players/enemies fit this description too.
B) There are going to be a lot of objects moving around running AI scripts (for now, the 'script's are hardcoded) on each level.
So now, the question. Should I implement a seperate physics engine for each level... or just use collision filtering and pack everything into one engine (which is how the design reads now)? This could be a matter of preference, but I didn't design Box2D and I haven't a clue what kind of load it can/should take.
-CodePaladin