Table of Contents

Class PhysicsCalibrationOverlay

Namespace
LibreRally.HUD
Assembly
LibreRally.dll

In-pause physics calibration overlay. Lets developers select the active tyre force model (Auto / Brush Only / Pacejka Only) and tune the key tyre, TCS, ABS / ECS, and launch-control parameters live without reloading the vehicle.

Source annotations in field descriptions indicate whether a value is loaded from JBeam or is a fixed default coded in the simulation ("magic number").

public sealed class PhysicsCalibrationOverlay : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
Inheritance
PhysicsCalibrationOverlay
Implements
ICollectorHolder
IGameSystemBase
IComponent
IReferencable
IUpdateable
IDrawable
IContentable
Inherited Members

Constructors

PhysicsCalibrationOverlay(IServiceRegistry)

Initializes a new instance of PhysicsCalibrationOverlay.

public PhysicsCalibrationOverlay(IServiceRegistry services)

Parameters

services IServiceRegistry

The Stride service registry.

Properties

CloseRequested

Raised when the user requests to close this overlay (Esc / B / Start).

public Action? CloseRequested { get; set; }

Property Value

Action

OverlayVisible

Gets or sets a value indicating whether this overlay is visible.

public bool OverlayVisible { get; set; }

Property Value

bool

StatusText

Gets or sets the status text shown in the summary card.

public string StatusText { get; set; }

Property Value

string

VehicleName

Gets or sets the vehicle name shown in the header.

public string VehicleName { get; set; }

Property Value

string

Methods

BindVehicle(RallyCarComponent?)

Binds a loaded vehicle to the overlay so its live parameters can be tuned. Call this whenever a new vehicle is loaded or the overlay is opened.

public void BindVehicle(RallyCarComponent? car)

Parameters

car RallyCarComponent

The active rally car component.

Destroy()

Disposes of object resources.

protected override void Destroy()

Draw(GameTime)

Draws the overlay when visible.

public override void Draw(GameTime gameTime)

Parameters

gameTime GameTime

Stride frame timing.

Initialize()

Initializes the overlay desktop and builds the initial (empty) UI.

public override void Initialize()

Update(GameTime)

Handles navigation input for the physics calibration overlay.

public override void Update(GameTime gameTime)

Parameters

gameTime GameTime

Stride frame timing.