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
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