Viewer: retractable landing gear #89

Manually merged
github merged 1 commit from gh-pr/89/head into gh-pr/89/base 2026-11-26 20:09:01 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-23 22:46 UTC · original
holdmysocks:claude/landing-gear → master · +171 −2 · 2 files · 1 commits · merged 2026-11-23 22:53 UTC

What

A "landing gear up" slider (vehicle panel, Rig) on aircraft that have gear door bones (gear_door_*, gear_inner_door_*); fixed gear and floats are left alone. --gear-up 0..1 for screenshots.

The game's files hold nothing to play here: no clip dictionary for any aircraft (the 11 va_* dictionaries are all convertible roofs) and no gear field in the model info or handling records. So the fold is worked out from the bind pose (gear down, doors modelled open):

  • a leg (gear_f, gear_rl, gear_rr, gear_lf ...) turns a quarter turn about a horizontal axis through its bone, towards the middle of the door meshes on its side: along the body or across it, whichever is larger. Where the doors sit close to the bone, a centre leg folds forwards and a side leg inwards.
  • a door that does not hang on a leg turns a quarter turn about its longer horizontal side, lower edge towards the nearest leg, over the last 40 % of the travel.
  • fitted wheels and brakes go up with their leg.

Checked

  • Screenshots at 0, 0.5 and 1 on shamal, jet2 and lazer: nose legs fold forwards, shamal's and jet2's main legs inwards, lazer's main legs forwards; the wheels go with them.
  • cargo test -p sixng-gui: 12 passed (no new tests).

Not right / not done

  • It is a guess at the motion, not the game's. On jet2 and lazer parts of a strut or a door still stick out when the gear is up; shamal's tucks in almost fully.
  • Struts do not compress, bogies do not tilt, the ik_landgear_* bones are not used.
  • Only the three aircraft above were looked at; nimbus, jet, swift, cargobob and volatus also have gear doors and were not checked.
  • Untested on the Metal renderer.
**@⁠holdmysocks** on GitHub · 2026-11-23 22:46 UTC · [original](https://github.com/holdmysocks/SixNG/pull/89) `holdmysocks:claude/landing-gear` → `master` · +171 −2 · 2 files · 1 commits · merged 2026-11-23 22:53 UTC ## What A "landing gear up" slider (vehicle panel, Rig) on aircraft that have gear door bones (`gear_door_*`, `gear_inner_door_*`); fixed gear and floats are left alone. `--gear-up 0..1` for screenshots. The game's files hold nothing to play here: no clip dictionary for any aircraft (the 11 `va_*` dictionaries are all convertible roofs) and no gear field in the model info or handling records. So the fold is worked out from the bind pose (gear down, doors modelled open): - a leg (`gear_f`, `gear_rl`, `gear_rr`, `gear_lf` ...) turns a quarter turn about a horizontal axis through its bone, towards the middle of the door meshes on its side: along the body or across it, whichever is larger. Where the doors sit close to the bone, a centre leg folds forwards and a side leg inwards. - a door that does not hang on a leg turns a quarter turn about its longer horizontal side, lower edge towards the nearest leg, over the last 40 % of the travel. - fitted wheels and brakes go up with their leg. ## Checked - Screenshots at 0, 0.5 and 1 on shamal, jet2 and lazer: nose legs fold forwards, shamal's and jet2's main legs inwards, lazer's main legs forwards; the wheels go with them. - `cargo test -p sixng-gui`: 12 passed (no new tests). ## Not right / not done - It is a guess at the motion, not the game's. On jet2 and lazer parts of a strut or a door still stick out when the gear is up; shamal's tucks in almost fully. - Struts do not compress, bogies do not tilt, the `ik_landgear_*` bones are not used. - Only the three aircraft above were looked at; nimbus, jet, swift, cargobob and volatus also have gear doors and were not checked. - Untested on the Metal renderer.
A "landing gear up" slider on aircraft with gear door bones. The files
hold no clip or angles for the gear, so the fold is worked out from the
bind pose (gear down, doors open): each leg (gear_f, gear_rl, gear_rr
...) turns a quarter turn about its bone towards the bay its doors mark
(a centre leg forwards and a side leg inwards where the doors do not
say); doors not hanging on a leg close over the last part of the travel.
Fitted wheels and brakes go up with their leg. --gear-up 0..1 for
screenshots.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:08:59 +00:00
github manually merged commit c1bec41842 into gh-pr/89/base 2026-11-26 20:09:01 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.