To reduce the car speed, try to lower the carEngineTorque. You must do it accordingly.
To make tests , you can use this in your player control loop :
Code:
if(key_s) // The s key will work as the "break"
{
if (p_vehicle.CarEngineTorque > 0 ) // Use this or you will end in reverse..
{
If (P_vehicle.CarEngineTorque - (10*time) > 0)
{
p_vehicle.carEngineTorque -= ( 10 * time);
}
Else
{
p_vehicle.CarEngineTorque = 0;
}
}
}
The value 10 is just an example. In my use of force with newton, I need to make it 75 * time to get a nice result.