peak long drag
This commit is contained in:
@@ -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