Car Tuning
Align The Car Assembly
This page renders the current car body and wheel assembly using the same baseline values as the race scene. Adjust the sliders until the fit looks right, then send me the numbers you like and I can wire them into the live game behavior.
Live Preview
Dashed lines mark the axles. Dotted lines mark wheel centers. Front guides use cool tones and rear guides use warm tones.
10 px/unit
Front axle
Rear axle
Front wheel center
Rear wheel center
Assembly Controls
Current Values
export const DEFAULT_CAR_ASSEMBLY_CONFIG: CarAssemblyConfig = {
bodySpriteHeight: 14,
frontWheelTargetHeight: 2.5,
backWheelTargetHeight: 3,
frontWheelOffsetX: 3,
backWheelOffsetX: 3,
frontWheelOffsetY: -3.3,
backWheelOffsetY: 5.5,
maxFrontWheelSteerDeg: 26,
frontAxleDistance: 3.3,
rearAxleDistance: 5.5,
}