Vehicles: wheel size from the rim radius; model info joined by handlingId #47

Manually merged
github merged 1 commit from gh-pr/47/head into gh-pr/47/base 2026-11-26 20:05:38 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 13:37 UTC · original
holdmysocks:claude/vehicle-wheels → master · +189 −25 · 3 files · 1 commits · merged 2026-11-23 13:44 UTC

Follow-up to #44: wheel sizes in the model viewer, and vehicles the viewer found no data for.

  • Model info joined by handlingId. Records were matched to models by gameName, but 46 of 325 carry another name there. A model with no record under its own name now takes the one whose handlingId names it (model_info_via). Models with model info: 312 to 357 of 373. vehicles.json gets "format": 2, and the viewer rebuilds older files.
  • Wheel size. wheelScale reads as the rim radius in metres and every shared rim model has radius 0.5, so the scale is 2 x wheelScale (was 1.625, fitted by eye on one car).
  • Helicopters get no wheels: no configuration names a rim, wheelScale is 0.05 to 0.08, and the wheel_* bones sit on the skids.
  • Two-wheelers: the wheel is narrowed to fit between the fork legs or swingarm. No wheel width was found in the data; this is an estimate.
  • A configuration without a tyre takes one from another configuration of the same vehicle instead of the previous vehicle's.

Checked

  • In the viewer: bmx, cruiser, brigade, caddy, cheetah2, cliffhanger, comet7, buzzard, maverick, mobilityscooter, aleutian, towtruck, willard, dubsta, enduro, boxville, sfb1000, manchez, carbonrs.
  • Over 203 _hi vehicles the tyre reaches a median 0.22 m below the lowest point of the body; one (crane) has the body 4 cm below the tyres.
  • 116 core tests pass.

Not decoded

The tyre's shape: the shared wheel models carry bones (rim_scale, wheel_width_mover, tyre_profile_*) the game drives per vehicle. Planes and some vans and tractors have no rim in any configuration and keep a default car rim and tyre.

**@⁠holdmysocks** on GitHub · 2026-11-23 13:37 UTC · [original](https://github.com/holdmysocks/SixNG/pull/47) `holdmysocks:claude/vehicle-wheels` → `master` · +189 −25 · 3 files · 1 commits · merged 2026-11-23 13:44 UTC Follow-up to #44: wheel sizes in the model viewer, and vehicles the viewer found no data for. - **Model info joined by `handlingId`.** Records were matched to models by `gameName`, but 46 of 325 carry another name there. A model with no record under its own name now takes the one whose `handlingId` names it (`model_info_via`). Models with model info: 312 to 357 of 373. `vehicles.json` gets `"format": 2`, and the viewer rebuilds older files. - **Wheel size.** `wheelScale` reads as the rim radius in metres and every shared rim model has radius 0.5, so the scale is 2 x `wheelScale` (was 1.625, fitted by eye on one car). - **Helicopters** get no wheels: no configuration names a rim, `wheelScale` is 0.05 to 0.08, and the `wheel_*` bones sit on the skids. - **Two-wheelers**: the wheel is narrowed to fit between the fork legs or swingarm. No wheel width was found in the data; this is an estimate. - A configuration without a tyre takes one from another configuration of the same vehicle instead of the previous vehicle's. ## Checked - In the viewer: bmx, cruiser, brigade, caddy, cheetah2, cliffhanger, comet7, buzzard, maverick, mobilityscooter, aleutian, towtruck, willard, dubsta, enduro, boxville, sfb1000, manchez, carbonrs. - Over 203 `_hi` vehicles the tyre reaches a median 0.22 m below the lowest point of the body; one (crane) has the body 4 cm below the tyres. - 116 core tests pass. ## Not decoded The tyre's shape: the shared wheel models carry bones (`rim_scale`, `wheel_width_mover`, `tyre_profile_*`) the game drives per vehicle. Planes and some vans and tractors have no rim in any configuration and keep a default car rim and tyre.
- vehicles.json: a model-info record was matched to its model by gameName,
  but 46 of 325 records carry another name there (bison4's says bison900,
  mobilityscooter's an unresolved hash). handlingId is the name the
  configurations and the drawable use; a model with no record under its
  own name now takes the one whose handlingId names it
  (model_info_via = "handlingId"). Models with model info: 312 -> 357 of
  373. The file gets "format": 2.
- Viewer: wheelScale reads as the rim radius in metres (0.217 on a BMX,
  0.303 on a cruiser bicycle, 0.25 / 0.22 on a dirt bike) and every shared
  rim model has radius 0.5, so rim and tyre are scaled by 2 x wheelScale.
  The factor was 1.625, fitted by eye on one car. Over 203 _hi vehicles
  the tyre now reaches a median 0.22 m below the lowest point of the body;
  one (crane) has the body 4 cm below the tyres.
- Viewer: helicopters get no wheels. No configuration of theirs names a
  rim and wheelScale is 0.05 to 0.08; their wheel_* bones sit on the skids.
- Viewer: on two-wheelers the wheel is narrowed to fit between the body
  parts beside it (fork legs, swingarm). No wheel width was found in the
  vehicle data, and at the rim's scale a bicycle tyre came out car-wide.
  This is an estimate.
- Viewer: a configuration with a rim and no tyre takes the tyre of another
  configuration of the vehicle, else a plain one of the rim's kind, not
  the tyre of the vehicle opened before. A vehicle with no data gets plain
  car wheels sized from the model.
- Viewer: vehicles are found by name hash where the table has no name,
  and a vehicles.json from before "format" is built again.

Not decoded: the tyre's shape. The shared wheel models carry bones
(rim_scale, wheel_width_mover, rim_offset_mover, tyre_profile_*,
tread_profile_*) the game drives per vehicle; what drives them was not
found, so the tyre is scaled with the rim. Planes and some vans and
tractors (boxville, stockade, taco, forklift, tractor2) have no rim in
any configuration and keep a default car rim and tyre.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:05:36 +00:00
github manually merged commit 84a4eef949 into gh-pr/47/base 2026-11-26 20:05:38 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.