Hi,
This is my first time posting here, so hopefully I'm in the right area to ask this. Basically, I'm curious if it's possible to do a 2.5D game with Box2D. Something where all the physics is 2D, yet there is a depth that sprites can go and still get all their transformations, etc.
I'm working on a 2.5D sprite engine and I've been stumped on what physics engine to use. I really like the design of Box2D from what I've seen, plus it seems actively developed on a regular basis, also it's very small compared to other libraries I've looked at (space is somewhat of an issue), and still has excellent features. I don't want to go with something huge where I only use a small portion of it (a 3D physics engine mostly clamped to 2D except for some sprite depths).
I'm mostly thinking about games that have a "virtual" 3D background. For example, Double Dragon type games where it's a fighting/platformer except they can travel forward and back a bit as well. Or Star Ocean where the battle system was basically 2D sprites on a plane. Hopefully this explains what I'd like to do.
I thought about using some kind of 2D physics "slice" where each sprite plane had it's own collisions, etc, but I have no idea if that's possible (or if it is, if it's efficient). If it were, would it be possible to move a dynamic body around manually without messing up it's internal data? Or any other suggestion someone might have. The engine is in OpenGL so sprites are fast and it's easy to use (or even use the 3D aspect of it to emulate a "mode 7" style effect).
Anyway, if anyone has any suggestions or help, I'd really appreciate it! Great work btw on this library!
P.S. Completely random thing I just thought of: is it possible to have gravitational nodes where all things fall toward its center? Like a planet or something? Not necessary, but thought I'd bring it up while I remembered.
This is my first time posting here, so hopefully I'm in the right area to ask this. Basically, I'm curious if it's possible to do a 2.5D game with Box2D. Something where all the physics is 2D, yet there is a depth that sprites can go and still get all their transformations, etc.
I'm working on a 2.5D sprite engine and I've been stumped on what physics engine to use. I really like the design of Box2D from what I've seen, plus it seems actively developed on a regular basis, also it's very small compared to other libraries I've looked at (space is somewhat of an issue), and still has excellent features. I don't want to go with something huge where I only use a small portion of it (a 3D physics engine mostly clamped to 2D except for some sprite depths).
I'm mostly thinking about games that have a "virtual" 3D background. For example, Double Dragon type games where it's a fighting/platformer except they can travel forward and back a bit as well. Or Star Ocean where the battle system was basically 2D sprites on a plane. Hopefully this explains what I'd like to do.
I thought about using some kind of 2D physics "slice" where each sprite plane had it's own collisions, etc, but I have no idea if that's possible (or if it is, if it's efficient). If it were, would it be possible to move a dynamic body around manually without messing up it's internal data? Or any other suggestion someone might have. The engine is in OpenGL so sprites are fast and it's easy to use (or even use the 3D aspect of it to emulate a "mode 7" style effect).
Anyway, if anyone has any suggestions or help, I'd really appreciate it! Great work btw on this library!
P.S. Completely random thing I just thought of: is it possible to have gravitational nodes where all things fall toward its center? Like a planet or something? Not necessary, but thought I'd bring it up while I remembered.