Vehicles: a widebody kit moves the wheels out #157

Manually merged
github merged 2 commits from gh-pr/157/head into gh-pr/157/base 2026-11-26 20:14:09 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-24 13:50 UTC · original
holdmysocks:claude/widebody-wheels → master · +132 −10 · 4 files · 2 commits · merged 2026-11-24 14:03 UTC

What

Reported by the user: with a widebody kit fitted, the wheels stayed in their stock position inside the wider arches.

How the game does it: the kit's part names wheel fitment records (9a172293) in its modifier list. A record marked relative (0341ff8f) changes the wheels of the vehicle the part is on. The elegy's wide-arch kit has three: tyre width +0.06 m on axle mask 2, offset (534c819f) 0.07 m on mask 3, spacing 0.05 m on mask 3. The records are in the vehicle library while the part is in the vehicle's pack.

  • vehicles.json (format 15): per vehicle wheel_fits, part name -> its fitment records (axles, width, offset, spacing, relative), for the pack's own parts and the library parts its configurations name. 138 vehicles have some.
  • Viewer: when the fitted parts carry such records, each wheel moves out from the centre line by offset + spacing for its axle and its tyre widens. This is applied to the stored wheel mounts as the vehicle loads, so wheels and brakes both follow.
  • --fit-parts <hex,hex> fits the given part options once after the load (the configuration's parts would otherwise replace a choice given in the model query), for scripted screenshots.

Checked

  • The elegy with its wide-arch kit, front three-quarter and rear views: the wheels now sit out under the wide arches, 0.12 m further out on each side, rear tyres 0.06 m wider. With stock parts nothing changes.
  • cargo build -p sixng-gui -p sixng-cli passes.

Not decoded / not done

  • That offset and spacing both move the wheel outwards, and that axle mask 1 is front and 2 is rear, are readings of one kit (rear tyres wider than front is the usual way round). Not confirmed against the game.
  • Other fields of the fitment record (44028028, 50a76e0e, 851fc0e3, 9c11c059, af61c6da, two scales at 1.0) are not read.
  • Only fitted parts that have a model option in the panel count. A configuration's fitment parts without a model (spacers) are in wheel_fits but not applied yet.
  • sixng vehicle (CLI export) does not apply the records.
  • No unit test. One car was rendered.
**@⁠holdmysocks** on GitHub · 2026-11-24 13:50 UTC · [original](https://github.com/holdmysocks/SixNG/pull/157) `holdmysocks:claude/widebody-wheels` → `master` · +132 −10 · 4 files · 2 commits · merged 2026-11-24 14:03 UTC ## What Reported by the user: with a widebody kit fitted, the wheels stayed in their stock position inside the wider arches. How the game does it: the kit's part names wheel fitment records (`9a172293`) in its modifier list. A record marked relative (`0341ff8f`) changes the wheels of the vehicle the part is on. The elegy's wide-arch kit has three: tyre width +0.06 m on axle mask 2, offset (`534c819f`) 0.07 m on mask 3, spacing 0.05 m on mask 3. The records are in the vehicle library while the part is in the vehicle's pack. - `vehicles.json` (format 15): per vehicle `wheel_fits`, part name -> its fitment records (`axles`, `width`, `offset`, `spacing`, `relative`), for the pack's own parts and the library parts its configurations name. 138 vehicles have some. - Viewer: when the fitted parts carry such records, each wheel moves out from the centre line by offset + spacing for its axle and its tyre widens. This is applied to the stored wheel mounts as the vehicle loads, so wheels and brakes both follow. - `--fit-parts <hex,hex>` fits the given part options once after the load (the configuration's parts would otherwise replace a choice given in the model query), for scripted screenshots. ## Checked - The elegy with its wide-arch kit, front three-quarter and rear views: the wheels now sit out under the wide arches, 0.12 m further out on each side, rear tyres 0.06 m wider. With stock parts nothing changes. - `cargo build -p sixng-gui -p sixng-cli` passes. ## Not decoded / not done - That offset and spacing both move the wheel outwards, and that axle mask 1 is front and 2 is rear, are readings of one kit (rear tyres wider than front is the usual way round). Not confirmed against the game. - Other fields of the fitment record (`44028028`, `50a76e0e`, `851fc0e3`, `9c11c059`, `af61c6da`, two scales at 1.0) are not read. - Only fitted parts that have a model option in the panel count. A configuration's fitment parts without a model (spacers) are in `wheel_fits` but not applied yet. - `sixng vehicle` (CLI export) does not apply the records. - No unit test. One car was rendered.
A part can name relative wheel fitment records (9a172293): offset, spacing and tyre width per axle. vehicles.json lists them per vehicle (wheel_fits, format 15) and the viewer applies those of the fitted parts to the wheel mounts. --fit-parts fits given part options once after the load.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:14:07 +00:00
github manually merged commit 4793000d1e into gh-pr/157/base 2026-11-26 20:14:09 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.