IncrediBots

Hello everyone,

We've been working on a game using Box2D-Flash (2.0) for a while, and we could use some help and feedback. The game is called "IncrediBots", and can be played here:

http://incredibots.com

The game is certainly not finished, so please do not link to it or tell anyone about it just yet 🙂 However! We would love to hear the feedback of the folks on this forum. What features do you think we should add? Did you find any bugs? We'd be happy to hear any feedback you're willing to give us!

Additionally, we're having a few problems with Box2D itself, and would love it if anyone could steer us towards some solutions. If you run the game, click "Load Robot" and open up the "bug_SquishyRev" file, then hit "Play", you'll see that the revolute joints "squish" greatly out of position. I've read all of the other forum posts on this subject, but there doesn't seem to be a satisfactory answer: How can we prevent this?

Secondly, if you load the "bug_SquishyPris" file, then hit "Play", you'll see that the prismatic joint bounces around, and doesn't stay rigid as we would like. How can we prevent this?

Thanks very much for your help and feedback! And thanks so much for Box2D!
Oh my god! that was the most innovative physics-game concept i've seen in a LONG time. it is, simply put, amazing. I love it.

I saw the monkeybot and i laughed out loud at the pure awesomeness of it all.


Unfortunately it may turn out to be quite difficult to make the game mechanics not quite so... twitchy. I am very tempted now to make a robot-building mode in my program. I would love to see what a lower physics timestep and a higher number of iterations will do.
Thanks for your feedback, dc443. I've been a robot nut for my entire life, so "IncrediBots" was the natural conclusion when I first discovered Box2D 🙂

I agree that the "feel" of the game needs work, which is why we're posting it here. We will certainly play with the timestep + iterations, but we also want the game to run at a reasonable frame rate. As it stands now, it can get quite slow if you make anything complex (like a "chain-drive tank", which I will be creating and saving for your perusal, soon).
Yeah, i sincerely wish you the best of luck, but I must say that simulating robots its a little more involved than simulating small stacks of blocks or making little explosions, and AS3 isn't the greatest when it comes to speed.

I can't really help you with those issues you've got, since I'm doing my coding in C++ and I'm fairly new to all this.

As far as the "feel" is concerned, to be honest i'm pretty surprised at how stable the simulation is, considering this is flash AS3. This thing has got potential.

edit: Haha! I made it across the monkey bars, but my right arm broke off right in the middle of a swing to the right. Are there max forces that break the arms or is it just general instability causing this?
Yes, we currently have it set such that the joints can break if too great a force is applied to them. We did this in an attempt to reduce the problem of joints being "overly squishy", but it's not a great solution.

Congrats on getting past the monkey bars 🙂
The "bug_SquishyRev" robot with the wheels and a giant block over it... The density of the wheels and the chassis is the set to the minimum, and the density of the large block is set to the maximum. It's not clear exactly what the ratio is between the min and the max, but whatever it is, the density disparity, combined with the size disparity, means that the block on top has WAY more mass than the car on the bottom, and the car just can't deal with that much mass on top of it. In fact, the mass disparity is such that, if you delete the wheels, the block stacked on the chassis is STILL unstable. It's a known issue that physics engines with iterative solvers, including Box2D, are not designed to support stacking with major mass disparities.

Set the densities of the wheels, chassis, and large block to be the same, and the stability goes back to normal.

As for the prismatic joint... I have no idea.
Thanks for the feedback (and your work on the AS3 port!), shaktool.

Ah, looks like you were editing your post while I was posting. You've answered my questions 🙂

If anyone else knows what's up with the prismatic joint, I'd love to hear your thoughts!
Realy cool idea! Congratulations. 😉
I realy like it.
Aren't the Expand/Contract keys inverted?

A general question:
In Box2D, do Prismatic Joints only allow movement in the specified axis or is it possible that they also jiggle a bit?
In your game are this "Sliding Joints" Prismatic or Revolute Joints?
It seems to me that the Sliding Joints can rotate too much in your game ( just my personal opinion ).
aero wrote:
Aren't the Expand/Contract keys inverted?

Hm, it's possible. I'll look into that; thanks!

aero wrote:
In your game are this "Sliding Joints" Prismatic or Revolute Joints?
It seems to me that the Sliding Joints can rotate too much in your game ( just my personal opinion ).

Our "Sliding Joints" are prismatic, yes. And I agree that they are too "wobbly" -- any suggestions on how we can fix them?
I'll eventually add robot functionalities to my c++ platform. I think the joints will become much more stable with a higher framerate and more iterations.

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