Viewer: aircraft rotors, propellers and control surfaces #87

Manually merged
github merged 1 commit from gh-pr/87/head into gh-pr/87/base 2026-11-26 20:08:51 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 22:31 UTC · original
holdmysocks:claude/aircraft → master · +205 −0 · 2 files · 1 commits · merged 2026-11-23 22:37 UTC

What

Planes and helicopters get sliders in the vehicle panel (Rig):

  • rotor / propeller speed: rotor_main, rotor_rear and prop_N turn. Below half speed the still blades show (_slow meshes); from half speed the game's blurred blades (_fast meshes, _disc) show instead.
  • flaps (flap_l, flap_r, flap_lm, flap_rm), ailerons (left down, right up), elevators, rudder, air brakes (airbrake_*).
  • Flags for screenshots: --rotor (0 to 1), --flaps, --ailerons, --elevators, --rudder, --airbrakes (degrees).

How a part is found: by its bone name. Its axis is taken from its mesh in its joint's space (the vertices on the joint and the joints below it): the thinnest direction for a rotor or propeller, the longest for a control surface. The sign comes from which way the middle of the mesh moves under a small turn (a flap goes down, an air brake up, the rudder's trailing edge to +X).

Checked

  • 24 aircraft models surveyed for bone names (dodo, duster, mallard, mammatus, the jets, ten helicopters, both drones, airgator).
  • Screenshots: dodo and jet2 flaps drop below the trailing edge; dodo elevators deflect; maverick shows its still blades at speed 0 and only the blurred main and tail rotor blades at 0.9.
  • cargo test -p sixng-gui: 12 passed (no new tests).

Not decoded / not done

  • No limits or rates are read from the files: slider ranges are fixed guesses (flaps 0 to 40 degrees, ailerons and elevators 25, rudder 30, air brakes 60), and the rotor speed is a viewer rate, not rpm.
  • Ailerons, air brakes and the rudder were not confirmed by eye, only by the rule above.
  • The rotor head's linkage (swash plate, pitch links, blade flap and flex bones), landing gear, gear doors and the rudder pedals do not move.
  • The blurred blade meshes are wedges that the game presumably spins or fades; here they just turn slowly.
  • Not on the Metal renderer path specifically: it uses the same joint matrices, untested on a Mac.
**@⁠holdmysocks** on GitHub · 2026-11-23 22:31 UTC · [original](https://github.com/holdmysocks/SixNG/pull/87) `holdmysocks:claude/aircraft` → `master` · +205 −0 · 2 files · 1 commits · merged 2026-11-23 22:37 UTC ## What Planes and helicopters get sliders in the vehicle panel (Rig): - **rotor / propeller speed**: `rotor_main`, `rotor_rear` and `prop_N` turn. Below half speed the still blades show (`_slow` meshes); from half speed the game's blurred blades (`_fast` meshes, `_disc`) show instead. - **flaps** (`flap_l`, `flap_r`, `flap_lm`, `flap_rm`), **ailerons** (left down, right up), **elevators**, **rudder**, **air brakes** (`airbrake_*`). - Flags for screenshots: `--rotor` (0 to 1), `--flaps`, `--ailerons`, `--elevators`, `--rudder`, `--airbrakes` (degrees). How a part is found: by its bone name. Its axis is taken from its mesh in its joint's space (the vertices on the joint and the joints below it): the thinnest direction for a rotor or propeller, the longest for a control surface. The sign comes from which way the middle of the mesh moves under a small turn (a flap goes down, an air brake up, the rudder's trailing edge to +X). ## Checked - 24 aircraft models surveyed for bone names (dodo, duster, mallard, mammatus, the jets, ten helicopters, both drones, airgator). - Screenshots: dodo and jet2 flaps drop below the trailing edge; dodo elevators deflect; maverick shows its still blades at speed 0 and only the blurred main and tail rotor blades at 0.9. - `cargo test -p sixng-gui`: 12 passed (no new tests). ## Not decoded / not done - No limits or rates are read from the files: slider ranges are fixed guesses (flaps 0 to 40 degrees, ailerons and elevators 25, rudder 30, air brakes 60), and the rotor speed is a viewer rate, not rpm. - Ailerons, air brakes and the rudder were not confirmed by eye, only by the rule above. - The rotor head's linkage (swash plate, pitch links, blade flap and flex bones), landing gear, gear doors and the rudder pedals do not move. - The blurred blade meshes are wedges that the game presumably spins or fades; here they just turn slowly. - Not on the Metal renderer path specifically: it uses the same joint matrices, untested on a Mac.
Planes and helicopters get sliders in the vehicle panel: rotor /
propeller speed (rotor_main, rotor_rear, prop_N turn; below half speed
the still blades show, from half speed the game's blurred _fast meshes),
flaps, ailerons, elevators, rudder and air brakes.

A part's axis is taken from its mesh in its joint's space (thinnest
direction for a rotor, longest for a control surface) and the direction
from which way the middle of the mesh moves. The angles are the
sliders', not limits read from the files.

Flags for screenshots: --rotor, --flaps, --ailerons, --elevators,
--rudder, --airbrakes (degrees; rotor 0 to 1).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:08:49 +00:00
github manually merged commit 3079e4f430 into gh-pr/87/base 2026-11-26 20:08:51 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.