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:

Thanks, and sorry for my bad English.
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:

Thanks, and sorry for my bad English.