Changing brake tourqe slows down engine?

danharibo

25-11-2007 19:33:02

I'm setting my engine like this:
if(ParkingBrake)
{
mWheelSet->setBrakeTorque(50.0f);
}

But, even if ParkingBrake is false, it still goes slower than normal (But it doesn't quite stop). So i'm slightly confused.

betajaen

25-11-2007 19:47:24

Because it's braking regardless if you have the Parking break on or off. If you set it to zero once the brake has been released it should work then.

danharibo

26-11-2007 16:35:31

I changed the Parking brake to Enable/Disable on a keypress, and the same problem occurs.

twilight17

27-11-2007 05:31:04

did you try

if(ParkingBrake)
{
mWheelSet->setBrakeTorque(50.0f);
}
else
{
mWheelSet->setBrakeTorque(0.0f);
}



i think that might help, but im a bit of a newb lol...

danharibo

27-11-2007 16:57:57

that's what i was doing in the first place.

NickM

27-11-2007 20:35:31

Have you tried getBrakeTorque() to see what it's set to?