Somebody here integrated any kind of burnout system? Can somebody share the code or give any tips of how it should be?
I started with some idea that is something but far to be as good as needed:
if ( speedUI < 25.0f && mWheelTorque > 0.0f && mAccel > 0.0f )
{
// START VALUE || 0 Mass Wheel
mMass = FMath::Lerp(0.0f,
// DESIRED VALUE || From 0 to default car Mass Wheel
mMassDefault,
// SPEED VALUE || The lerp speed sets the final value
FMath::Clamp( speedUI * 0.04f , 0.01f, 0.99f) );
}
else { mMass = FMath::Lerp(mMass, mMassDefault, 0.01f); }
Basically when car speed is less than 25km/h, the mass goes from 0 to default based on that speed. It makes that on car stop and accel or when doing 180ยบ turns, the wheels on that speed range got lot of spin giving a good feel but have also some cons too.
So before develop or try other ideas, wonder if somebody already did it and what values or how it was achieved.