Viewer: steering (front wheels, fitted wheels and brakes, steering wheel) #63

Manually merged
github merged 1 commit from gh-pr/63/head into gh-pr/63/base 2026-11-26 20:06:53 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 18:09 UTC · original
holdmysocks:claude/steering → master · +114 −8 · 4 files · 1 commits · merged 2026-11-23 18:19 UTC

A steering control in the viewer's Rig section, and a correction to the vehicles.json note.

Steering

  • A slider from -40 to 40 degrees. The wheel_turn_* bones turn about the vertical.
  • The shared wheels, brake discs and calipers fitted at a wheel under such a bone turn about the same pivot. They are instances, not skinned, so they are turned separately.
  • The steering wheel (bone steeringwheel) turns about the axis in which its vertices are thinnest, by 17 x steerWheelMult x the road wheel angle. steerWheelMult comes from the model info (0.7 on comet7).
  • --steer <radians> for automation.

Note string

The vehicles.json note still said the viewer scales rim and tyre by wheelScale / 0.5. That rule was withdrawn. The note now says wheelScale is not understood, that wheel size comes from the model's collision discs and the rim's share from rim_ratio.

Checked

  • In the viewer on comet7 and buffalo6 (both directions, steering wheel), bison4 and the sanchez dirt bike, before the rebase onto master.
  • After the rebase (one overlap with #62 in vehicle_db.rs, both fields kept): cargo check --release of both binaries passes. A full build and the tests were not run again after the rebase; the same merged code built and ran in a local branch that combined this commit with #61 and #62.

Not decoded

  • The steering lock. No handling record was found in the 0x7a resources of data.rpf, packs.rpf or common.rpf, so the range is fixed.
  • The factor 17 is an estimate.
  • Both wheels take the same angle. A motorcycle's fork turns about the vertical, not about its rake axis.
**@⁠holdmysocks** on GitHub · 2026-11-23 18:09 UTC · [original](https://github.com/holdmysocks/SixNG/pull/63) `holdmysocks:claude/steering` → `master` · +114 −8 · 4 files · 1 commits · merged 2026-11-23 18:19 UTC A steering control in the viewer's Rig section, and a correction to the `vehicles.json` note. ## Steering - A slider from -40 to 40 degrees. The `wheel_turn_*` bones turn about the vertical. - The shared wheels, brake discs and calipers fitted at a wheel under such a bone turn about the same pivot. They are instances, not skinned, so they are turned separately. - The steering wheel (bone `steeringwheel`) turns about the axis in which its vertices are thinnest, by 17 x `steerWheelMult` x the road wheel angle. `steerWheelMult` comes from the model info (0.7 on comet7). - `--steer <radians>` for automation. ## Note string The `vehicles.json` note still said the viewer scales rim and tyre by `wheelScale / 0.5`. That rule was withdrawn. The note now says `wheelScale` is not understood, that wheel size comes from the model's collision discs and the rim's share from `rim_ratio`. ## Checked - In the viewer on comet7 and buffalo6 (both directions, steering wheel), bison4 and the sanchez dirt bike, before the rebase onto master. - After the rebase (one overlap with #62 in `vehicle_db.rs`, both fields kept): `cargo check --release` of both binaries passes. A full build and the tests were not run again after the rebase; the same merged code built and ran in a local branch that combined this commit with #61 and #62. ## Not decoded - The steering lock. No handling record was found in the `0x7a` resources of `data.rpf`, `packs.rpf` or `common.rpf`, so the range is fixed. - The factor 17 is an estimate. - Both wheels take the same angle. A motorcycle's fork turns about the vertical, not about its rake axis.
- Rig panel: a steering slider (-40 to 40 degrees). The wheel_turn_*
  bones turn about the vertical; the shared wheels, brake discs and
  calipers fitted at a wheel under such a bone turn about the same
  pivot (they are instances, not skinned).
- The steering wheel (bone steeringwheel) turns about the axis in which
  its vertices are thinnest, by 17 x steerWheelMult x the road wheel
  angle (steerWheelMult from the model info; 0.7 on comet7).
- --steer <radians> for automation.

Checked on comet7 and buffalo6 (both directions, steering wheel),
bison4 and the sanchez dirt bike.

Not decoded: the steering lock. No handling record was found in the
0x7a resources of data.rpf, packs.rpf or common.rpf (nothing there
names a vehicle's handlingId besides the model info, configurations
and variation sets), so the range is fixed. The factor 17 is an
estimate. Both wheels take the same angle. A motorcycle's fork turns
about the vertical, not about its rake axis.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:06:52 +00:00
github manually merged commit 8e2a5aa8e0 into gh-pr/63/base 2026-11-26 20:06:53 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.