Tank

Working on a tank game. Trying to get realistic effects with traction and the treads.

http://www.mechascientific.com/Tank.html

I tried a lot of ways to move the tank. The first was to apply angular velocity to the wheels, but this didn't give much traction. Then I tried applying torque, worked well but I didn't realize applying torque was additive! I was building up some crazy torque. Finally I made it so as long as the left or right arrow button is pushed down, torque is added to each wheel, but if neither is down, torque is set to 0. Any other suggestions?
Just so you know, something's wrong with your version detect - I have Flash 9 rev 47, but your site won't show me the Flash file, it thinks I have no player installed. Running PPC Mac OS X 10.4 + Firefox, if that helps.
I played around with your demo, and it was pretty fun. I like the way the tank moves for the most part. The objects slip when you try to run them over, that's good. Try playing with the weight of the tank and objects. Tanks are really heavy, the objects should be relatively light.
Same here..doesn't think I have the right version..
Got it to work using
http://www.mechascientific.com/Tank.swf
Really neat!
Mike
Are you applying an equal an opposite torque to the tank body for each wheel?

You can also use a joint motor to achieve a target wheel speed up to a specified torque limit.
Thanks for the input guys.

As far as the player goes, not sure what's going on there. Could be the result of having some flex and flash beta software on my box. My day job is programming Flex apps.

As for the tank itself, there's no limit on the torque for now, and I'm applying the same amount to both wheels. I need to figure out how to apply some kind of counter force to the wheels so that the tank doesn't coast, or roll down slopes.

How do I increase the weight? Is changing the density the only way to do that?
I think one big main problem is that the treads aren't in any way attached to the wheels, so when you move the treads just sort of slide around the wheels.
Entar: how would I fix that?

UPDATE:
exploding blocks
http://www.mechascientific.com/Bombs.html
Heh, the explosions mess the tread all up. It gets all crooked and vibrates horribly when they're on the wheels. You should let the joints in the tread break too. Also, reset (the r key) doesn't work right, it doesn't delete all the old boxes.
ninjascience wrote:
Entar: how would I fix that?

Sorry, don't know. I'm a bit of a noob myself, just thought that might help.

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