Im trying to get more steer precision.
The actual steerspeed curve gives the steer speed based on car speed. I want to add the stick (-1.0 / 1.0) to the formula.
For example, if the stick is moved only -0.1 = move at 10% of that steerspeed curve.
This is what im doing:
On FGearStandardInput.cpp in “//apply steering dead zone”
I changed this line:
mSteerInput = FMath::Clamp(mSteerInput, -mCurrentSteeringLimit, mCurrentSteeringLimit);
To:
mSteerInput = FMath::Clamp(mSteerInput * FMath::Abs(mHorizontal * 1.1f) , -mCurrentSteeringLimit, mCurrentSteeringLimit);
It gives me more precision on steer for small variations, very useful on high speeds. The cons is that on drop the stick the steer goes to 0 instantly, which may cause issues in some turns/circusmtances.
With the original code, when you drop the stick it goes to steer 0 but smooth.
So, what will be the best way to fix and on drop the stick get the same results as with original code, or maybe i should edit in other line to get same/best results?