Avatar Control

I building a multiplayer game. I am kinda stuck on how to control the players' avatars. Each player has an active turn, while everyone else is inactive. Think scorched earth or worms.

I don't want the avatars to slide around. Solution: give them maximum friction. Problem: now movement is weird.
I was thinking about using one body while a body is inactive and another while it is active. This seems a bit extreme. Has anyone solved this problem already?

The other problem I have is keeping the avatars upright. The active player should strongly resist rotation, but allow it if enough torque is applied. The inactive avatars should resist rotation just enough to stay upright between active turns. Ideally, the active avatar can mess with the inactive avatars and they will respond like regular physics objects.

My requirements sound a lot like a revolute joint, except that would stop the avatars from moving.

I feels like Box2D would do well to add a Motor system like that in OPAL, opal.sourceforge.net/tutorial4.html
You want high friction to ensure they don't slide to much, which you've applied. You'll have to elaborate on what you mean by "weird movement". With high friction, you'll need to be constantly applying a force to make something more, or constantly setting it's velocity.

But what you ask for about torque is a bit less consistent. If you allow them to rotate, they will fall over eventually in some circumstances.. But it won't look very accurate if they have no rotation. You'll have to come up with a descision over how to compromise.

I think perhaps what would be best for you would be to raise the sleep thresholds considerably, or even manually put bodies to sleep when it is not their turn (you are presumably only changing turn when things have stabilized anyway). Sleeping bodies do not move at all, but will instantly wake up and start reacting, if, say, they are hit by a bullet.

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