Export fragment and prop physics into model.json (SIX-188) #251
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!251
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/251/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@holdmysocks on GitHub · 2026-11-25 06:14 UTC · original
holdmysocks:six-188-frag-physics→master· +806 −3 · 6 files · 2 commits · merged 2026-11-25 06:41 UTCExports fragment and prop physics into
model.json(SIX-188).ftmodels get aphysicsblock decoded from the fragment's physics LOD.drmodels get their embedded composite bound. Both get anarchetypeblock from the ytyp archetype and the object tuning table. Member exports (--member) are unchanged.What is exported
Fragments (
physics.kind = "fragment")Drawables (
physics.kind = "drawable")Archetype (
archetype)dynamicguess, and the archetype's tuning keys.Confirmed
Checked on all 40,705 decodable level fragments, or against the fragment tuning presets in common.
Likely, not proven
strengthandmin_damage_force: not stated anywhere in the data, and the presets give plain numbers. They are probably compared against the collision impulse (kg·m/s) rather than a force in N, but that is unproven. Treat them as relative thresholds, -1 = unbreakable, and calibrate against the child masses.dynamic= archetype flag bit 17: set on everyftarchetype and on 8% ofdr. Bit 24 is also set on everyft, and bit 29 only ondr. Other bits are exported raw.Not decoded
drphArchetype:drprops carry no phArchetype, so there is no mass or inertia for them. The tuning table's object mass is the only source, and it is often -1 (use the default).physics: null.Plausibility samples
dr): 21 bound children, 1.44 m³.Notes
lod-linksrun, because the archetype cache now stores flags and tuning keys.fragsurveyandarchflagstatsreproduce the survey numbers above.Tests:
fragphysunit tests cover a synthetic fragment (groups, spare child record, tuning, positions), broken layouts, a drawable composite bound and the tuning table entry.