Hello there!
I am currently researching what libraries I could use for my coming hobby project and since it's becoming a 2d platforming game (and Box2d's awesome track record) Box2d would be a likely candidate.
I do apologize if these questions have been asked before. I tried searching for answers on these fora and the internet in general but I wasn't very lucky. Or just not a very talented searcher...
I'm trying to create a 2d platformer that plays as a mix between old-school mario 3-esque platformers and modern day physics based game (especially worlds that behave in such a way that players can predict its behavior and come up with creative solutions). It's a tricky, and maybe even silly, mix but one of the important parts is to have characters or entities that behave like the old-school characters: basic bounding boxes that don't rotate, the kind that can stand on a ledge with a single toe 😉 Now, I did find something about FixedRotation settings, but I'm unsure if that's a technique or a simple flag that can be set on a body? And if those rotation constraints are set, flag or no flag, does that affect other mechanics such as chains or friction?
One of the main features of the game would be that it has a destructible landscape. Now, the game will be sort of tile based so I'm guessing that I have two options here: either build the map from tiles (one static box per tile) or dynamically rebuild the map using Static Edges. (By the way, the destruction is not too fancy; it's more or less comparable to the destruction of brick blocks in Super Mario Bros on the NES).
I did find some info on the first, tile based, method and general concerns about dynamic bodies getting stuck between tiles. So is that still happening or is it possible to lay out the boxes in such a way (perhaps with a little overlap?) that they behave as one surface? Also, what would be the expected performance for a map (say 512x512 tiles) filled with these boxes?
It seems that the second method is rather new, I couldn't find an awful lot of info on it except that it was being ported from the AS3 Box2d. The demo in the test bed looks pretty neat and I do have a system in place to generate edges from a tile map, but would it be feasible to update those edges in real-time? Or is it possible to divide it in chunks and only update the chunks that matter?
I realize that these might be silly questions for the more experienced Box2d users (and programmers) here. So feel free to point me to the right source or thread if these questions have been asked before.
Thanks for your time!
I am currently researching what libraries I could use for my coming hobby project and since it's becoming a 2d platforming game (and Box2d's awesome track record) Box2d would be a likely candidate.
I do apologize if these questions have been asked before. I tried searching for answers on these fora and the internet in general but I wasn't very lucky. Or just not a very talented searcher...
I'm trying to create a 2d platformer that plays as a mix between old-school mario 3-esque platformers and modern day physics based game (especially worlds that behave in such a way that players can predict its behavior and come up with creative solutions). It's a tricky, and maybe even silly, mix but one of the important parts is to have characters or entities that behave like the old-school characters: basic bounding boxes that don't rotate, the kind that can stand on a ledge with a single toe 😉 Now, I did find something about FixedRotation settings, but I'm unsure if that's a technique or a simple flag that can be set on a body? And if those rotation constraints are set, flag or no flag, does that affect other mechanics such as chains or friction?
One of the main features of the game would be that it has a destructible landscape. Now, the game will be sort of tile based so I'm guessing that I have two options here: either build the map from tiles (one static box per tile) or dynamically rebuild the map using Static Edges. (By the way, the destruction is not too fancy; it's more or less comparable to the destruction of brick blocks in Super Mario Bros on the NES).
I did find some info on the first, tile based, method and general concerns about dynamic bodies getting stuck between tiles. So is that still happening or is it possible to lay out the boxes in such a way (perhaps with a little overlap?) that they behave as one surface? Also, what would be the expected performance for a map (say 512x512 tiles) filled with these boxes?
It seems that the second method is rather new, I couldn't find an awful lot of info on it except that it was being ported from the AS3 Box2d. The demo in the test bed looks pretty neat and I do have a system in place to generate edges from a tile map, but would it be feasible to update those edges in real-time? Or is it possible to divide it in chunks and only update the chunks that matter?
I realize that these might be silly questions for the more experienced Box2d users (and programmers) here. So feel free to point me to the right source or thread if these questions have been asked before.
Thanks for your time!