Vehicles: wheel fitment records of parts without a model, and in sixng vehicle #169

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

@⁠holdmysocks on GitHub · 2026-11-24 15:37 UTC · original
holdmysocks:claude/wheel-fits-everywhere → master · +71 −14 · 4 files · 2 commits · merged 2026-11-24 15:52 UTC

What

Follow-up to #157 (a widebody kit moves the wheels out). Two places did not apply wheel fitment records yet, and the axle field was read wrongly.

  • Parts without a model. A configuration can name fitment parts that have no model (spacers, tyre width changes). The viewer now applies their records for the configuration shown: wheels and brakes move out and tyres widen. Parts with a model are still counted where they are fitted, so taking a kit off takes its change along.
  • sixng vehicle. The export applies the records of the configuration's parts: wheels are placed further out and stretched along the axle for a wider tyre. The result JSON reports moved_out and widened per axle.
  • Axle field. In the data it is 0, 2 or 3, never 1. #157 read it as a bit mask, which ignored every record with 0. It is now read as front, rear and both.

Numbers

  • 561 configurations on 136 vehicles name fitment parts with such records; all but one of those parts have no model. So this changes the stock look of many vehicles a little.
  • The records in stock configurations: tyre width +0.03 (209 times) and +0.06 (150), offsets of -0.01 to +0.02, spacings of -0.01 to +0.03. The largest: the tow truck's rear axle, offset 0.16.
  • Axle values over all records in configurations: 3 on 596, 2 on 443, 0 on 288.

Checked

  • Tow truck from behind with the build in target\release and with this branch: the rear wheels sit 0.16 m further out on each side, under the edges of the bed instead of tucked in.
  • sixng vehicle towtruck: reports moved_out [0, 0.16], 10 wheels.
  • cargo build -p sixng-cli -p sixng-gui passes.

Not decoded / not done

  • That 0, 2 and 3 mean front, rear and both is a reading of the values, not confirmed against the game. With it, 112 stock records widen only the front tyres.
  • That offset and spacing both move the wheel out is still a reading (see #157). On trucks with twin rear wheels "spacing" could be the gap between the twins instead.
  • No unit test. One vehicle was rendered.
**@⁠holdmysocks** on GitHub · 2026-11-24 15:37 UTC · [original](https://github.com/holdmysocks/SixNG/pull/169) `holdmysocks:claude/wheel-fits-everywhere` → `master` · +71 −14 · 4 files · 2 commits · merged 2026-11-24 15:52 UTC ## What Follow-up to #157 (a widebody kit moves the wheels out). Two places did not apply wheel fitment records yet, and the axle field was read wrongly. - **Parts without a model.** A configuration can name fitment parts that have no model (spacers, tyre width changes). The viewer now applies their records for the configuration shown: wheels and brakes move out and tyres widen. Parts with a model are still counted where they are fitted, so taking a kit off takes its change along. - **`sixng vehicle`.** The export applies the records of the configuration's parts: wheels are placed further out and stretched along the axle for a wider tyre. The result JSON reports `moved_out` and `widened` per axle. - **Axle field.** In the data it is 0, 2 or 3, never 1. #157 read it as a bit mask, which ignored every record with 0. It is now read as front, rear and both. ## Numbers - 561 configurations on 136 vehicles name fitment parts with such records; all but one of those parts have no model. So this changes the stock look of many vehicles a little. - The records in stock configurations: tyre width +0.03 (209 times) and +0.06 (150), offsets of -0.01 to +0.02, spacings of -0.01 to +0.03. The largest: the tow truck's rear axle, offset 0.16. - Axle values over all records in configurations: 3 on 596, 2 on 443, 0 on 288. ## Checked - Tow truck from behind with the build in `target\release` and with this branch: the rear wheels sit 0.16 m further out on each side, under the edges of the bed instead of tucked in. - `sixng vehicle towtruck`: reports `moved_out` [0, 0.16], 10 wheels. - `cargo build -p sixng-cli -p sixng-gui` passes. ## Not decoded / not done - That 0, 2 and 3 mean front, rear and both is a reading of the values, not confirmed against the game. With it, 112 stock records widen only the front tyres. - That offset and spacing both move the wheel out is still a reading (see #157). On trucks with twin rear wheels "spacing" could be the gap between the twins instead. - No unit test. One vehicle was rendered.
A configuration's fitment parts without a model (spacers, tyre widths) now move and widen the wheels in the viewer, and sixng vehicle applies the records of the configuration's parts. The record's axle value is read as front (0), rear (2) and both (3) instead of a bit mask.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:14:58 +00:00
github manually merged commit 592f347814 into gh-pr/169/base 2026-11-26 20:14:59 +00:00
github-bot referenced this pull request from a commit 2026-11-26 20:15:23 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.