Hallo there,
first of all: thank you all for the great game !
I am not sure whether I got the following wrong or this is a bug.
I recognized, that unlocking the brakes seems to be harder than it should. The following brake lock calculation could explain that:
Quote:T GetTorque ( T rotational_speed )
{
T brake = brake_factor > handbrake_factor ? brake_factor : handbrake_factor;
//brake = pow(brake,2.0f);
T pressure = brake * bias * max_pressure;
T normal = pressure * area;
T torque = friction * normal * radius;
T velocity = radius * rotational_speed;
if ( velocity < 0.0 )
torque = -torque;
T absvel = std::abs(velocity);
// See if the brake is locked.
if ( absvel < threshold * normal )
//if ( absvel < ( threshold * brake ) )
{
torque = 0.0;
locked = true;
}
else
locked = false;
lasttorque = torque;
return torque;
}
In cardynamics the wheel speed is set to zero, when brakes are locked.
Hence,
Quote:if ( absvel < threshold * normal )
is always true, as absvel is proportional to the rotational wheel velocity.
Shouldn't the engine, tire-friction and all that influence the lock-state of the brakes? If these torques are higher than the static friction of the brake discs, the brakes should unlock.
Perhaps someone can help me understanding the physics calculations here.
Regards
Sebastian