Prismatic & Revolute Joint act strange

Hi,

I'm rather new in Box2D. Now I'm trying to make a cart object which consist of Card body, Axle1 and Axle2, and Wheel1 & Wheel2. I connect Axle1 and Axle2 into Cart body using prismatic joint. I've limit the lower and upper translation and set the force and motor speed.

Then, I connect Wheel1 to Axle1 and Wheel2 to Axle2 using Revolute joint, and I am able to run the cart by applying a force to the both of revolute joint.

The problem comes when the cart run quite fast, and collide with obstacle (static ground body). The wheel will move horizontally like it wasn't locked, and few ms after that, the wheel will be back to it's original position.

I only want the wheel to rotate, not moving horizontally/vertically. For vertical movement, I've already create the axles and set it to move only in Y axis (something like shock breaker).

I guess this shouldn't happen, isn't it? anyone can give me some clue about this?. I'm using the latest Box2d (2.1a for Flash 9). I attach the screenshot:

Image

Thanks, and sorry for my bad English.
That's pretty much the same problem I'm having with the weld joint.
Adding another constraint 'might' help. Try putting a line joint in between your axles/wheels to try and enforce them to stay a certain distance apart. It might make it worse since the engine has to solve for more constraints, or it might help. Worth a try I think.
@VengantMjolnir:

I've tried your suggestion, put the LineJoint between axle and wheel, but no effect 🙁. Any other clue?
Not between axle and wheel, but between the two axles themselves... as a way to force them to remain a certain distance apart from one another. Like drawing a line along the x-axis between the front and back wheels.
Did you have continuous physics on? I just fixed a bug that may affect you. Try again with SVN head.
@BorisTheBrave

Great!, right after I get the latest version from SVN, the strange act of joints is now fixed!. I need to change some of my objects like contact listener and edge shapes, though, but this is great!.

Thank you very much for fixing the bug, I didn't know it was a bug. I've tried VengantMjolnir suggestion by placing line joint between axles and wheel but no effect.

Thanks again!.
I'm having these problems too... can you tell me how to fix it without updating to Box2D 2.1a ?
I've tried adding all kind of restrictions, modified values to get smaller values for torques, forces ...etc ..but my wheels still keep "running" away. 😕
There are very few bugs in 2.0, if you are using that the problem is likely your own. I'm not providing in depth support for that version, in any case.

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