peak long drag
This commit is contained in:
@@ -173,7 +173,7 @@ public partial class Clutch : PowertrainComponent
|
||||
OutputInertia = (inertiaSum + halfClutchInertia) * _clutchEngagement + halfClutchInertia;
|
||||
|
||||
// Allow the torque output to be only up to the slip torque valu
|
||||
float outputTorqueClamp = SlipTorque * _clutchEngagement;
|
||||
float outputTorqueClamp = Controller.Engine.EstimatedPeakTorque * 1.5f * _clutchEngagement;
|
||||
|
||||
OutputTorque = InputTorque;
|
||||
OutputTorque = Math.Clamp( OutputTorque, 0, outputTorqueClamp );
|
||||
|
||||
@@ -250,11 +250,13 @@ public partial class VeloXWheel
|
||||
lowSpeedReferenceIsSet = false;
|
||||
}
|
||||
|
||||
|
||||
ForwardFriction.Force = Math.Clamp( ForwardFriction.Force, -peakForwardFrictionForce, peakForwardFrictionForce );
|
||||
|
||||
SidewayFriction.Force = Math.Clamp( SidewayFriction.Force, -peakSideFrictionForce, peakSideFrictionForce );
|
||||
|
||||
if ( absForwardSpeed > 2f || absAngularVelocity > 4f )
|
||||
|
||||
if ( absForwardSpeed > 0.01f || absAngularVelocity > 0.01f )
|
||||
{
|
||||
|
||||
float forwardSlipPercent = ForwardFriction.Slip / Tire.GetPeakSlip();
|
||||
@@ -262,7 +264,7 @@ public partial class VeloXWheel
|
||||
float slipCircleLimit = MathF.Sqrt( forwardSlipPercent * forwardSlipPercent + sideSlipPercent * sideSlipPercent );
|
||||
if ( slipCircleLimit > 1f )
|
||||
{
|
||||
float beta = MathF.Atan2( sideSlipPercent, forwardSlipPercent * 0.9f );
|
||||
float beta = MathF.Atan2( sideSlipPercent, forwardSlipPercent * 1.05f );
|
||||
float sinBeta = MathF.Sin( beta );
|
||||
float cosBeta = MathF.Cos( beta );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user