Revolute joint motors and high speeds

Hi!

I have a car-like situation where I have a dynamic box with two circles attached to it as wheels using revolute joints. If I enable the joint motor on one of the wheels, the car starts moving as it should but apparently the joint motor now also prevents the wheel from rotating any faster than the given motor speed. I tried experimenting with the max torque but it seems I do not fully get how to control this.

I would like the motor to be enabled but also allow the wheel to rotate faster than the motor speed in case the car rolls down a slope, for example. Is there a way to allow this while the motor is enabled, or do I have to disable the motor when the motor speed has been reached?

Thanks!
Disable the motor and apply a torque to the wheel and an equal and opposite torque to the chassis. That is closer to how a real vehicle works.

For braking, enable the motor and set the speed to zero.
Thanks, I'll try that.
I got it working. I have a question related to this though. I'm trying to tune the values of the car so that is as responsive as I want. When rotating the wheels they almost always loose grip of the underlying material, even though I put the friction of both shapes to 1.0.

In the shape def's documentations it says "The shape's friction coefficient, usually in the range [0,1].". Does this mean that I should not put the friction to anything above 1.0? When setting the friction of the wheels to 2.0 I got much better results, but I though I would ask about this since I dont know if the engine can become unstable with anthing above 1.0.
You can set the friction higher than 1. For general stacking scenarios I would keep it below 1.

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