예제 #1
0
 private void SetTyreDataLabels(TyreDebugDataContainer container, TyreDebugData data)
 {
     container?.SurfaceLabel?.SetText($"Surfc: {data.Surface}");
     container?.AccelerationForceLabel?.SetText($"Accel: {data.AccelerationForce}");
     container?.CurrentVelocityLabel?.SetText($"CVel: {data.CurrentRelativeVelocity}");
     container?.SidewaysFrictionLabel?.SetText($"SideF: {data.SidewaysFriction.x:0.000} N");
     container?.RollingFrictionLabel?.SetText($"RollF: {data.RollingFriction.y:0.000} N");
     container?.BrakingFrictionLabel?.SetText($"StopF: {data.BrakingFriction.y:0.###} N");
     container?.MassResponsibilityLabel?.SetText($"MassR: {data.MassResponsibility} N");
     container?.EffectiveGripLabel?.SetText($"EGrip: {data.EffectiveGrip}");
     container?.DownforceLabel?.SetText($"DownF: {data.Downforce:0.000} N");
     container?.TotalGripLabel?.SetText($"Total: {data.TotalGrip}");
 }
예제 #2
0
 public CarDebugData(
     VelocityDebugData velocity,
     EngineDebugData engine,
     TyreDebugData leftFrontTyre,
     TyreDebugData rightFrontTyre,
     TyreDebugData leftRearTyre,
     TyreDebugData rightRearTyre,
     AeroDebugData aero) : this()
 {
     Velocity       = velocity;
     Engine         = engine;
     LeftFrontTyre  = leftFrontTyre;
     RightFrontTyre = rightFrontTyre;
     LeftRearTyre   = leftRearTyre;
     RightRearTyre  = rightRearTyre;
     Aero           = aero;
 }