commit d531d828a3e954c844662b89f3454142dd365769
parent bfcafe034e3503de2c19e47780235277b2ea1a80
Author: anon <anon@example.com>
Date: Mon, 26 Oct 2026 08:34:51 +0000
Document native collision body selection and scale fixtures
Bind ordinary cached bodies and explicit MonsterData models to the character
source path. Record six GPU WASM checks for render-only mesh changes,
scale clamps, template spheres and capped-radius ground placement.
Keep live movement integration open. Remove the owned visitor after testing,
verify unrelated database rows and restore the sole shared HTTPS preview.
Diffstat:
2 files changed, 44 insertions(+), 7 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -1231,9 +1231,11 @@ disconnect retention and succession policy still need period corroboration.
replace it with Halt. The 40-second hardware wall fixture currently produces
28.73 metres of server error before the next pose message. Preserve native segment/contact
ordering, retries, sphere scaling and floor selection. Apply the recovered
- intermediate-slope and raised-probe rules, and resolve effective model selection,
- segment queries and combined terrain/static floor selection before claiming
- full canonical collision. Test
+ intermediate-slope and raised-probe rules. Wire the recovered ordinary-body
+ cache and MonsterData template selection, directed segment queries and combined
+ terrain/static/liquid floor selection before claiming full canonical collision.
+ Hardware now verifies ordinary cached bodies, character scale clamps, explicit
+ template spheres and adjusted-radius ground heights. Test
owner/observer/server poses, wall sliding, corners, narrow passages, multiple
forms/scales, long holds, large admitted frame steps, release/reversal and
interaction ranges while blocked. See [player geometry](docs/player-geometry.md).
diff --git a/docs/player-geometry.md b/docs/player-geometry.md
@@ -151,10 +151,33 @@ and scales Y/radius separately. Thus ordinary player radius byte 5 gives exactly
are independent: thin Nanomage male 17909 has Y=0; hovertech 20615 has negative Y
and the radius fallback. Tests retain both cases and scaling order.
-The reader requires an effective model identity. Exact precedence across player
-appearance, model stats, forms and rebuild paths remains unfinished. Incremental
-native scale updates multiply the existing primitive by new/old scale rather
-than re-decoding it; that lifecycle also belongs to the movement integration.
+The reader needs the model identity used when the collision body was constructed.
+Ordinary character setup initially selects the normal breed/sex CIR. A later
+thin/fat appearance change uses the render mesh's ChangeMesh and retains the
+existing collision body. A thin Nanomage male reconnect therefore ends with
+render stat12=17909 but collision offsetY still 0.2507500052. The thin resource's
+authored Y=0 is valid metadata; it is not that ordinary player's cached body.
+Explicit MonsterData first resolves the template, then its stat12 selects the
+CAT used to construct collision. The earlier ambiguous stat12/stat42 selection
+path belongs to SimpleItem and does not establish player model precedence.
+
+Character base stat360 assignments clamp to at least20. The extent refresh
+separately clamps effective scale to at least1; form refresh has its own minimum20.
+These are different transition rules, so one universal effective-scale clamp
+would be incorrect. Incremental native scale updates multiply the existing
+primitive by new/old scale instead of re-decoding metadata. Replacing the CAT
+through SetCatMesh rebuilds it. Grid form99902 and special appearance flags still
+need separate investigation.
+
+Six GPU WASM captures corroborate these contracts through normal control
+edits and read-only probes. Height1 becomes native base20, visual scale
+0.1999999881 and radius/offsetY0.05014999956. Height200 produces visual scale2
+and radius/offsetY0.5015000105. Explicit Anvian template17651 gives authored
+radius0.7702500224 and offsetY0.7164639831, while hovertech template20614 gives
+fallback radius0.5 and retained negative offsetY-0.05000600219. Their native
+ground positions match the capped-radius/adjusted-offset formula within
+0.000001 metres. The thin render appearance continues to retain its normal
+collision body across the scale/reconnect checks. No client errors occurred.
The native body interface obtains a scaled model torso sphere. Its radius and
offset are model-specific. For this owned visitor, raw radius and offsetY both
@@ -183,6 +206,12 @@ failure, selected-archive comparisons and source ledgers:
metadata, scale/fallback ordering and explicit model-selection gaps.
- `contact-response/`: 12 complete bodies; segment/contact/raised-probe routing,
five-pass retries, strict ground comparisons, water separation and Halt bounds.
+- `model-selection/`: 46 complete bodies; character/item class bindings, ordinary
+ cached bodies, template/form replacements and transition-specific scale rules.
+- `ground-query/`: 20 complete bodies; terrain/static/liquid floor selection,
+ vertical KD traversal, normals, miss outputs and outdoor position veto.
+- `segment-query/`: 33 complete bodies; cell/terrain DDA, directed triangle
+ intersections, KD ordering and the normally enabled invisible-surface switch.
These counts overlap; they are not unique additional procedures. Source checks
establish maintained-code contracts and evidence integrity. Runtime probes
@@ -202,3 +231,9 @@ Go source and relevant bundled archive to that exact test binary. The independen
coordinate comparison covers every outdoor cell. The sole HTTPS8443 preview
remains on the verified terrain build; this milestone adds no live movement
behavior, database mutations or additional test clients/servers.
+
+The subsequent six body captures are under
+`local/player-collision-integration/runtime/body/`. Their verifier records the
+cached-body, scale, template and ground-formula checks. Owned visitor121 was
+removed after closing the browser; unrelated rows hash unchanged, foreign-key
+and integrity checks pass, and the same single preview build was restarted.