Would Box2d be the right choice for my game?

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!
Yes, it's feasible, but it does entail a fair amount of work.

FixedRotation is just a flag, that's easy. It works perfectly well. You can have an slightly octagonal character to eliminate "toe-stubbing", though this can cause problems of it's own. Overlap doesn't solve the problem. Moving to fixed edges would solve the problem. Doing so wouldn't be prohibitive in performance, even in Flash, but it is tedious.

Box2D lacks several other things that are common in platformers. One way platforms will require more work, though mayobutter has a technique that does reproduce this reliably. It's harder to move things in non-physical patterns (as it doesn't interact well with collisions, rather than its difficult to call SetXForm).
I'm not sure about other libraries out there, or tile based games, but box2d is easy and good. I like the way it works, and I would recomend it.
Thanks a lot for your replies.

BorisTheBrave, could you elaborate a little on what problems the slightly octagonal character collision could cause? Also, what would be tedious using the fixed edges, updating them after destruction or just setting them up in general?

The one way platforms are not an issue for me as my game needs to be physically correct. Well, sort of 😉 Players need to be able to predict and "get" the way the game world works which is, I think, one of the great qualities of physics engines.
Only the obvious problem that stepping very near the edge of a cliff will cause you to slip off it, or at least sink down a little. And similar occurences when the player will notice the octagonalness.

Tediousness is a matter of opinion. It should be clear what needs implementing, at least.

Original thread: https://box2d.org/forum/viewtopic.php?t=2886