API ReferenceGE ExtensionseditorvehicleEditorliveEditor
Adjustable Tech Car Tuner
Live editor app for tuning the adjustable tech car's dimensional variables (wheelbase, track width, overhang, body width, weight, CoG, yaw inertia) with a visual measurement overlay.
Live editor app for tuning the adjustable tech car's dimensional variables (wheelbase, track width, overhang, body width, weight, CoG, yaw inertia) with a visual measurement overlay.
Module: M (extensions.editor.vehicleEditor.liveEditor.veAdjustableTechCarTuner)
| Function | Description |
|---|---|
M.open() | Opens the tuner window |
M.onUpdate() | Draws the tuner UI with car diagrams and measurement sliders |
M.onEditorInitialized() | Loads car view images and registers the editor window |
M.onVehicleResetted(vid) | Re-initialises variable pointers on vehicle reset |
M.onSerialize() / M.onDeserialized(data) | Persists window open state |
| Property | Value |
|---|---|
M.menuEntry | "Adjustable Tech Car Tuner" |
Tunable Variables
| Variable | Format | Description |
|---|---|---|
$wheelbase | %.2f m | Distance between front and rear axles |
$overhang_F | %.2f m | Front overhang distance |
$overhang_R | %.2f m | Rear overhang distance |
$trackwidth_F | %.2f m | Front track width |
$trackwidth_R | %.2f m | Rear track width |
$bodyWidth | %.2f m | Body width |
$weightscale | %.2f x | Weight multiplier |
$cogOffsetY | %.2f x | Centre of gravity Y offset |
$cogOffsetZ | %.2f x | Centre of gravity Z offset |
$yawInertia | %.2f x | Yaw inertia multiplier |
Usage Example
-- Only works with the "adjustable_tech_car" JBeam vehicle
-- Open via Vehicle Editor > Live Editor > Adjustable Tech Car Tuner
-- Or programmatically:
extensions.editor_vehicleEditor_liveEditor_veAdjustableTechCarTuner.open()
-- The tuner displays:
-- * Side-view car image with measurement lines for:
-- - Front overhang, wheelbase, rear overhang
-- * Bottom-view car image with measurement lines for:
-- - Front track width, rear track width, body width
-- * Float sliders for weight, CoG offsets, yaw inertia
-- Each slider maps to a JBeam variable ($wheelbase, $trackwidth_F, etc.)
-- Variables are bounded by their min/max defined in vdata.variables
-- Click "Apply" to push all tuning changes to the vehicle:
-- This calls core_vehicle_partmgmt.setConfigVars() which
-- triggers a vehicle reset with the new variable values
-- Measurement lines are drawn using ImGui draw list with:
-- * Connecting lines from image reference points to measurement area
-- * Arrow endpoints on horizontal/vertical measurement lines
-- * Inline float sliders at the midpoint of each measurementSee Also
- Aero Debug - Related reference
- Crash Tester - Related reference
- Flexbody Debug - Related reference
- World Editor Guide - Guide