14 lines
323 B
C#
14 lines
323 B
C#
using Sandbox;
|
|
|
|
namespace VeloX.Powertrain;
|
|
|
|
public class OpenDifferential : BaseDifferential
|
|
{
|
|
[Property] public float BiasAB { get; set; } = 0.5f;
|
|
public override void SplitTorque( float aW, float bW, float aI, float bI, out float tqA, out float tqB )
|
|
{
|
|
tqA = Torque * (1 - BiasAB);
|
|
tqB = Torque * BiasAB;
|
|
}
|
|
}
|