Compose source body physics and enable tutorial static response
This commit is contained in:
1 parent
df0263b26e
commit
35a2a66606
26 files changed
+1045
-18
No files matched your search
@@ -26,13 +26,18 @@ fly camera or rendered model alone does not satisfy the playable-scene requireme
|
||||
Collision continuation separates the recovered one-triangle47BD80 kernel
|
||||
(`OriginalSphereResponse`) from the live capsule adapter. Its explicit nearest
|
||||
state is caller-owned. `OriginalStaticCollision` composes source FIFO cell visits,
|
||||
retry and support-grid reduction as an isolated component. Its caller owns body
|
||||
retry and support-grid reduction. Its caller owns body
|
||||
integration, terminal callbacks and shared nearest/last-polygon reset timing.
|
||||
Prepared collision metadata retains signed material archive identities and an
|
||||
explicit completeness flag; source body callers must account for special contacts.
|
||||
Seven original dispatcher comparisons and ten original ordinary-body reference
|
||||
observations are in checkpoint/collision-body-probe.md. Live body composition,
|
||||
special callbacks and dynamic reclipping remain gated.
|
||||
observations are in checkpoint/collision-body-probe.md. `OriginalBodyPhysics`
|
||||
composes that static path for ordinary Jimmy flags/contacts and is used in VR04;
|
||||
the live bridge supplies zero angular velocity, variable source radius60/100 and
|
||||
separate published160 speed. Lab/outside retain the capsule. Special callbacks,
|
||||
other original actor pair eligibility and shared dynamic reclipping remain gated.
|
||||
Source root and modern feet/sole rendering are distinct adapters; F3 exit still
|
||||
uses modern capsule occupancy. See checkpoint/collision-body-implementation.md.
|
||||
The source-root upward ray is supplied separately from the camera debug query:
|
||||
Jimmy's wrapper reflects upward velocity/cancels mode1 jump/fire before movement,
|
||||
including while uncontrolled. Fresh input precedes this wrapper; retained input
|
||||
|
||||
@@ -39,6 +39,11 @@ The next C4 chunk adds [grid traversal](collision-grid-traversal.md),
|
||||
is implemented and compared with isolated original outputs; whole-body/live
|
||||
integration and special contacts remain gated. [Independent review](collision-integration-review.md)
|
||||
records corrections and remaining limits.
|
||||
The [ordinary-body implementation](collision-body-implementation.md) composes the
|
||||
ten numeric references and enables the static subset in VR04. Its
|
||||
[source contract](collision-body-composition-source.md) closes phase/radius fields;
|
||||
[implementation review](collision-body-implementation-review.md) preserves remaining
|
||||
dynamic, special-contact, initialization and modern noclip/render boundaries.
|
||||
|
||||
Evidence labels used throughout:
|
||||
|
||||
|
||||
@@ -0,0 +1,171 @@
|
||||
# Ordinary body composition479D20
|
||||
|
||||
2026-10-27 UTC. Independent source investigation for the managed composition
|
||||
chunk. The EXE SHA256 is
|
||||
`f5281076e1a2492f2d61f87aae3f4544b6d0f535ebe33f9fbb6f78710fe1aea8`.
|
||||
Preferred VAs below are PE-mapped by body_composition_contract.py; text raw
|
||||
offsets equal VA−400000 for these supplied bytes. The helper guards the entire
|
||||
479D20..47A329 body plus81 decisive instruction sites and12 Jimmy vtable targets.
|
||||
|
||||
## Evidence and scope
|
||||
|
||||
Retained REA479D20 Evidence
|
||||
`ev_5439072b32ae9f9208795ad2b07bc524e2407b46da487072fb3dfd8c10e7c4b0`
|
||||
is in artifacts/collision-response/rea-response/01.evidence.json. Its incomplete
|
||||
prototype/local-variable reconstruction must be checked against instructions;
|
||||
the actual caller supplies actor interface and dt. Reviewed disassembly is saved
|
||||
to artifacts/collision-integration/body-composition.instructions.txt; fixed source
|
||||
anchors/offsets are in body-composition-contract.json. No original executable
|
||||
entry point or original routine was executed in this independent investigation.
|
||||
The ten prior copied-code body observations remain separate in
|
||||
[collision-body-probe.md](collision-body-probe.md).
|
||||
|
||||
Focused new REA/Ghidra session used the existing generated EXE copy, exported
|
||||
Evidence, then closed normally under artifacts/collision-integration/rea-body-radius/:
|
||||
|
||||
| Procedure | REA Evidence |
|
||||
|---|---|
|
||||
|471240, authored/current radius setter|ev_d77d8a0d308e4d9b71dbb0cccfcf68771bd4552a9d4a09c50d14225ec171b058|
|
||||
|471B40, live body-radius setter|ev_97d21014bcdac4f44484c1c079e957f22d449b60efd7c2a31be450deddc38871|
|
||||
|
||||
437F90 was not recognized as a Ghidra procedure; the complete error remains in
|
||||
00.json. Its burst call site is supported by reviewed instructions/fixed guards,
|
||||
not attributed to successful pseudocode. No unchanged failed query was retried.
|
||||
|
||||
## Recovered phase order
|
||||
|
||||
The body pointer is the game interface, complete-object+C0 for Jimmy. Slot offsets
|
||||
in this report are interface-relative.
|
||||
|
||||
| VA / raw offset | Source operation and ownership |
|
||||
|---|---|
|
||||
|479D2E /79D2E|Read support218 and cache previous support in global695D49.|
|
||||
|479D3D..4E /79D3D|If support handling1C8 is enabled, write current support21C(false).|
|
||||
|479D58..60 /79D58|Only now test integration210; false returns with the preceding support side effects intact.|
|
||||
|479D6F..479DD4 /79D6F|Read current root310 and old previous root2F8; compute quick magnitude of their difference and discard its result. This is not a pre-support/gravity cancellation query.|
|
||||
|479DDA..479E54 /79DDA|Test global geometry4F69E5, independently of prior support. Enabled: anchor2F4(0,−25000,0). Disabled: support21C(true), anchor(0,current-root-Y,0), acceleration278(0,−gravity.Y,0), velocity2C4(oldX,0,oldZ).|
|
||||
|479E63..479EAC /79E63|Read angular velocity2AC, rotate334(angularXYZ×dt) before consuming impulse.|
|
||||
|479EBB..479EF2 /79EBB|Read pending impulse284, add XYZ through velocity2CC, clear impulse28C(0,0,0) once.|
|
||||
|479F01..479F4A /79F01|Read acceleration270, add accelerationXYZ×dt to velocity.|
|
||||
|479F50..479F7E /79F50|Separately add global gravityXYZ×dt.|
|
||||
|479F8D..479FD2 /79F8D|Read resulting velocity; store displacementXYZ=velocityXYZ×dt.|
|
||||
|479FD6..479FF0 /79FD6|Read collision flag220, then world-response1D0 when collision is enabled. These gates are distinct from global geometry and support.|
|
||||
|47A038..47A096 /7A038|World branch clears last polygon695D4C, sets face695D5C=130000 and edge5CFBE0=radius260, copies current root into previous-root2FC, clears auxiliary695D84.|
|
||||
|47A090..47A11F /7A090|If displacement.Y>0, dispatch47B4B0 with fullXYZ. If Y<=0, dispatch with XZ/zeroY, then add original falling displacement.Y to candidate.Y. Edges flag is true in both paths.|
|
||||
|47A123..47A181 /7A123|After terminal contact callback, read fresh previous-root2F8 and live root310 and compare all four floats. Only equality permits final candidate publication.|
|
||||
|47A187..47A1C4 /7A187|Clamp candidate **Y** below−25000 to−25000, then publish Vec4 via314; if any previous/live component differs, skip clamp/publication.|
|
||||
|47A22A..47A235 /7A22A|If1C8, run support47B890 after displacement/callback/publication. It uses the original previous support695D49 for landing transition.|
|
||||
|47A241..47A25A /7A241|Read published scalar268/live160. Equal zero invokes friction47A330; this is not controller scalar608 or a raw-control test.|
|
||||
|47A298..47A2D1 /7A298|Read suppression scale230/live144. Angular quick magnitude×scale<=0.1 zeros angular velocity2B4.|
|
||||
|47A2E0..47A31D /7A2E0|Linear quick magnitude×scale<=0.1 plus a fresh268==0 zeros linear velocity2C4.|
|
||||
|
||||
Publication from the dispatcher means writing the caller's candidate stack vector,
|
||||
not necessarily changing actor root310. The later Vec4 equality check preserves
|
||||
contact-owned transform changes. It compares freshly read previous/live roots;
|
||||
it is not a comparison with a stale local copy and must include W. Ordinary
|
||||
370 and nonspecial Jimmy374 do not move the root, so a bounded ordinary adapter
|
||||
can keep W=1 explicitly. A future special callback must preserve this boundary.
|
||||
|
||||
The body does not automatically reset movement mode/jump/fire on support. Source
|
||||
landing37C for Jimmy is a no-op; later controller/fire callbacks own those states.
|
||||
Landing observer order and friction details are in
|
||||
[collision-contact-callbacks.md](collision-contact-callbacks.md).
|
||||
The rotate334 call's order and XYZ arguments are recovered here; this does not
|
||||
recover generic334 angle wrapping or logical/render transform synchronization.
|
||||
The original body fixture substitutes a simple Euler-add virtual, so its angular
|
||||
cases cannot independently prove the real transform implementation. An ordinary
|
||||
live bridge supplying zero angular velocity remains within a narrower contract.
|
||||
|
||||
## Flag branches and shared state
|
||||
|
||||
If220 is true but1D0 is false, source47A1CC..47A220 copies current root to
|
||||
previous2FC and translates31C(displacement). Support and published-speed friction
|
||||
still run afterward. It does not initialize/query the static context in this path.
|
||||
|
||||
If220 is false,47A264 tests228. When228 is false, it translates31C(displacement);
|
||||
when true it does not translate. Both skip support and friction, but still run
|
||||
the suppression tail. The initial support clear remains, if1C8 was enabled.
|
||||
Treating all of these modes as a single collision/noclip boolean would lose
|
||||
source state changes. Modern F3 noclip is a separate user-requested policy.
|
||||
|
||||
Prior source guards establish ordinary defaults: support1C8/live13B=true,
|
||||
world1D0/live13C=true, integration210/live13E=true, collision220/live140=true,
|
||||
228/live141=false. Player overrides prevent-lowering208/live13A=true; direct
|
||||
dispatcher member42C defaults0. Generic suppression-scale default0.5 is
|
||||
46FE01→471120→234, and Player friction default0.8 is4373B0→4711B0→24C→live150.
|
||||
These are initialization contracts, not invariants after authored/script setters.
|
||||
|
||||
Static context resets occur once before body world traversal. Retries retain
|
||||
nearest/last polygon. Dynamic response uses its own face/edge initialization and
|
||||
can retain the last-polygon global; it remains a separate shared-scene contract.
|
||||
No new meaning is assigned to auxiliary695D84 in this bounded investigation.
|
||||
|
||||
## Init restores authored speed separately from current publication
|
||||
|
||||
Retained REA470540 Evidence
|
||||
`ev_c16f95e608194a8f9fb029430f1c6a01512d34099ebf447cf944946c79631166`
|
||||
in artifacts/collision-integration/rea-support/02.json covers generic Init's scalar
|
||||
copy. It is independently linked to Jimmy's vtable and the guarded leaf bodies:
|
||||
|
||||
| Source site | Initialization contract |
|
||||
|---|---|
|
||||
|4706CF /706CF|Calls Jimmy interface114→471260, reads authored float interface38.|
|
||||
|4706DB /706DB|Passes that value to interface26C→471B60, writes current published160.|
|
||||
|46FC08 /6FC08|Constructor zeroes EBX.|
|
||||
|46FE51..54 /6FE51|Pushes EBX=0, invokes471270 (authored-speed setter).|
|
||||
|471270 /71270|Stores authored38, then forwards the same value to26C/live160.|
|
||||
|471B50/471B60 /71B50/71B60|268 reads and26C writes current published160 only.|
|
||||
|
||||
Controller437C22..2D publishes through26C after applying movement, so it changes
|
||||
current160 without changing authored38. Preparation43A750 clears controller608
|
||||
and velocity but not either speed field38/160. Ordinary/retained Init through
|
||||
437890→4587F0→470540 therefore reapplies authored speed; constructor default is0
|
||||
and the current route's Jimmy properties do not assign another authored speed.
|
||||
The bounded bridge's per-scene PublishedSpeed=0 follows this initialization
|
||||
chain, rather than being inferred from controller608's separate Init reset.
|
||||
|
||||
Init is a copy of authored38, not an unconditional zero invariant. A future caller
|
||||
of interface118→471270 with a nonzero authored value must preserve that value
|
||||
through subsequent Init. No new source execution is claimed for this follow-up;
|
||||
the retained REA Init result plus fixed getter/setter/constructor bytes establish
|
||||
the route/default contract.
|
||||
|
||||
## Burst radius is the same live physics radius
|
||||
|
||||
There is no independent interaction-only100 radius in this source path:
|
||||
|
||||
| Source link | Structure/write |
|
||||
|---|---|
|
||||
|437FA3|Air helper obtains EDI=complete object+C0, the same game interface.|
|
||||
|4384E4 /4384F3|Allowed burst with an effect pushes100, calls interface264.|
|
||||
|Jimmy table4A373C+264→471B40|Writes interface15C, current body radius.|
|
||||
|Table+260→471B30|Reads exactly interface15C;479D20 and47B890 both consume260.|
|
||||
|PostLoad4236A3→110→471240|Writes authored34 then invokes264, initializing current radius60.|
|
||||
|Held-state3 landing4386C1..C8|Writes current radius60 directly through264.|
|
||||
|PostLoad4236B3→100→4711E0→254→471B00|Sets live support factor154=1.265;250→471AF0 reads it.|
|
||||
|
||||
Thus radius100 changes both sphere response and radius×factor support clearance
|
||||
and root offset, to126.5 with the ordinary factor. Grounded Jimmy's ordinary
|
||||
wrapper restores60 in its later object phase; physics/support must not perform
|
||||
that restoration early or clear it merely because control is absent. Other
|
||||
gadget radii (for example scooter160) remain outside the ordinary−1/3 subset.
|
||||
|
||||
## Verification and remaining integration questions
|
||||
|
||||
`python3 -m unittest discover -s tests -p test_body_composition_contract.py -v`
|
||||
passes eight groups: original body/site identity; disabled-integration support
|
||||
clear; phase order; descending split; three distinct flag gates; four-component
|
||||
publication predicate; shared burst/support radius targets; Init authored/current
|
||||
speed separation. These fixtures are
|
||||
explicit source control-flow projections, not original execution or managed body
|
||||
numeric verification. Existing ten isolated body observations and primary's
|
||||
managed comparisons provide separate numeric evidence recorded by primary.
|
||||
|
||||
Before VR04 live use, compare root/support while radius changes60→100→60, retain
|
||||
separate published160 versus controller608 across control loss, and verify the
|
||||
phase owner for restoring radius. Source collision root and modern render foot
|
||||
translation remain separate: no new capsule height or visual sole correction is
|
||||
derived here. Full wrapper/registry, exact x87 cell/quick-magnitude boundaries,
|
||||
special160/164/FENCE/LADDER callbacks, dynamic global context and whole original
|
||||
game comparison remain open. An ordinary component passing numeric fixtures does
|
||||
not establish those broader contracts.
|
||||
@@ -0,0 +1,92 @@
|
||||
# Ordinary body and VR04 bridge review
|
||||
|
||||
2026-10-27 UTC. Independent read-only review of primary's current
|
||||
OriginalBodyPhysics.cs, LabSimulation.cs and Program.cs against
|
||||
[the source contract](collision-body-composition-source.md). This investigator
|
||||
owns only this report. No new original execution or REA session was necessary;
|
||||
existing retained body/radius Evidence and guards establish the reviewed facts.
|
||||
|
||||
## Result
|
||||
|
||||
No directly evidenced mismatch was found within the stated subset: enabled
|
||||
integration/support/collision/world flags, prevent-lowering enabled, lower-edge
|
||||
override disabled, ordinary Jimmy contacts, fixed factor1.265 and zero angular
|
||||
velocity in the live bridge. The implemented composition preserves source
|
||||
impulse→acceleration→gravity, positive-Y/full versus nonpositive-Y/horizontal-first
|
||||
motion, terminal370 positive-Y clearing, support/landing order, independent
|
||||
published160 friction gate and final suppression. Fresh per-body nearest context
|
||||
agrees with the source world branch's explicit resets.
|
||||
|
||||
The absence of special Player374 behavior is enforced conservatively by rejecting
|
||||
any source scene with potentially eligible special-contact material IDs. Omitting
|
||||
the source Vec4 previous/live-root reentrancy test is justified only inside this
|
||||
bounded no-root-changing-contact subset; the explanatory source comment says so.
|
||||
Generic334 angle wrapping/transform behavior remains outside the zero-angular
|
||||
bridge, and the component's nonzero-angular numeric fixtures use the original
|
||||
probe's substituted Euler-add virtual rather than real source334 execution.
|
||||
|
||||
## Integration checks
|
||||
|
||||
- Program selects the source body only for actual VR04; lab/outside keep their
|
||||
existing adapter. OriginalBodyPhysics rejects special-contact geometry and
|
||||
StepOriginalPhysics rejects attaching the provisional dynamic resolver.
|
||||
- The live radius passed to body/support is InteractionRadius. This correctly
|
||||
incorporates burst100 and later wrapper restoration60, rather than retaining
|
||||
the old capsule24 radius or treating100 as interaction-only. Constant75.9 is
|
||||
a conversion between modern feet storage and actor root, not the solver's
|
||||
variable support offset. Rendering's sole correction remains a modern policy.
|
||||
- Physics still runs before Jimmy input/controller/fire. Grounded radius60 is
|
||||
restored in the wrapper before ownership checks. Preparing a script clears
|
||||
controller speed/velocity while preserving body published160, pending impulse
|
||||
and independent acceleration. A new scene resets published speed separately.
|
||||
- The bridge supplies zero angular velocity and derives the next state from
|
||||
current actor root/velocity/acceleration/impulse/support/published speed each
|
||||
body pass. Dropping the component's angular output does not lose live angular
|
||||
state inside this declared zero-angular subset.
|
||||
- Camera debug enable remains camera-only; the body's geometry and overhead
|
||||
query do not use it. Modern noclip bypasses the body while enabled and resumes
|
||||
it with cleared motion through the existing debug policy.
|
||||
|
||||
## Scope risks and next gates
|
||||
|
||||
1. **Prepared doors are not every original dynamic body.** Program rejects a
|
||||
nonempty StaticSceneVisuals.DoorColliders sequence in the source subset. This
|
||||
establishes only absence of those prepared doors. Actual VR04 entities include
|
||||
3SOL,3ROC,3TRO and other classes; their complete original physical-list and
|
||||
pair-collision eligibility is not closed by that check. Preserve the explicit
|
||||
no-dynamic-body-pass limitation and recover source registry/flags before
|
||||
claiming complete tutorial collision fidelity or extending the adapter.
|
||||
2. **Modern noclip exit uses the old occupancy policy.** SetNoclip(false) still
|
||||
checks SceneCollision.CanOccupy with capsule24/render-derived height. Source
|
||||
body response can subsequently reposition a root that this debug test admitted.
|
||||
The ordinary flight/return test does not establish radius60/100 admission at
|
||||
walls or tight gaps. Keep this as a documented debug policy; a later source
|
||||
occupancy check needs an explicit supported contract rather than silently
|
||||
treating zero-motion dispatch as a complete overlap query.
|
||||
3. **Initial/visual placement is still bounded.** SceneCollision.GroundHeight and
|
||||
floor-derived rendering are used to initialize the modern bridge. The stable
|
||||
VR04 root/sole tests verify port consistency, not original transform/pivot
|
||||
equivalence. Source spawn/root settling and wrapper/base logical-to-render
|
||||
synchronization remain separate comparisons.
|
||||
4. **Shared dynamic context remains unimplemented.** Fresh source body contexts
|
||||
must not later be reused for dynamic reclipping without the recovered reset/
|
||||
last-polygon schedule. Special contact root writes require the source Vec4
|
||||
publication condition; a generic wall reflection is not an adequate substitute.
|
||||
5. **Gadget scope remains−1/3.** Source gadget7 has additional374 side effects;
|
||||
source scooter uses another radius policy. The current bridge does not carry
|
||||
those contracts into OriginalBodyPhysics. Future gadget-selection expansion
|
||||
must restrict or implement them before broadening this solver's claim.
|
||||
|
||||
These are retained integration boundaries, not failures of the ten-reference
|
||||
ordinary composition. They do not require changing the verified source arithmetic.
|
||||
|
||||
## Verification
|
||||
|
||||
`source scripts/env.sh && dotnet run --project tests/GamePort.BodyPhysicsTests --
|
||||
../Original` passes20 groups independently during this review, logged to
|
||||
artifacts/collision-integration/body-implementation-review-tests.log. Coverage
|
||||
includes ten original copied-body references, positive/nonpositive split,
|
||||
ceiling370, radius100 support, unclamped friction, actual VR04 root/visual
|
||||
consistency, preparation/published speed, control-independent impulse, retained
|
||||
flight/landing and ordinary noclip return. These are managed port checks;
|
||||
primary's headless/native/GPU/whole-route results are recorded separately.
|
||||
@@ -0,0 +1,86 @@
|
||||
# Ordinary body implementation and tutorial bridge
|
||||
|
||||
2026-10-27 UTC. This chunk composes the recovered static dispatcher with ordinary
|
||||
Jimmy body integration and enables that bounded path in VR04. It does not close
|
||||
all collision, dynamic bodies, special contacts or original visual comparison.
|
||||
|
||||
## Evidence and implementation
|
||||
|
||||
[Source composition](collision-body-composition-source.md) records the whole-body
|
||||
hash,81 guarded sites,12 virtual targets, callers, offsets, flags, source root
|
||||
publication condition and new REA radius Evidence. [Original component results](collision-body-probe.md)
|
||||
provide ten copied479D20/support numeric references. No original game entry point
|
||||
or full Jimmy instance was executed by this implementation chunk.
|
||||
|
||||
OriginalBodyPhysics implements the true210/1C8/220/1D0, false228/42C,
|
||||
prevent-lowering subset. It clears current support, consumes impulse once, adds
|
||||
acceleration and gravity separately, splits nonpositive-Y motion into horizontal
|
||||
response then fallingY, and preserves source callback/support/friction/suppression
|
||||
order.370 clears positive vertical velocity/acceleration independently. Ordinary
|
||||
374 and inherited37C do not move the root; special-contact worlds are rejected.
|
||||
This justifies the fixed-W1/no-root-changing-contact publication subset. Future
|
||||
special callbacks must implement fresh previous/live Vec4 comparison before314.
|
||||
|
||||
Landing diagnostics observe new root/zero acceleration and old velocity/support.
|
||||
Published speed160 is separate from controller608, copied at the controlled tail.
|
||||
Script preparation clears controller speed/velocity while preserving published
|
||||
speed, pending impulse and acceleration. Friction reads the preserved body scalar;
|
||||
control ownership does not suspend physics. The generic scale0.5 suppression and
|
||||
unclamped friction0.8 follow source contracts. Nonzero angular component tests use
|
||||
the probe's substituted334 Euler-add contract; the live bridge passes angular0.
|
||||
|
||||
Program selects source body only for VR04. Lab/outside retain their prior capsule
|
||||
because they contain special contact materials and pending dynamic integration.
|
||||
The source body rejects attaching the provisional dynamic resolver; Program also
|
||||
asserts no prepared door colliders in this subset. This does not prove absence of
|
||||
every original dynamic class: VR04 has3SOL/3ROC/3TRO and other eligibility questions.
|
||||
|
||||
Live radius is the existing InteractionRadius, which source260/264 prove is the
|
||||
same body field15C. Burst60→100 changes both sphere response and support offset
|
||||
75.9→126.5; later grounded wrapper restoration60 stays after physics and outside
|
||||
the input ownership gate. The replay now records two support landings rather than
|
||||
the previous capsule's one; radius/support transitions are retained, not flattened
|
||||
to preserve the old diagnostic count. Maximum rise changes418.98→418.93 because
|
||||
the source path removes the modern floor skin. Travel remains403.88 in this input
|
||||
fixture. These are port observations, not original whole-game trajectory metrics.
|
||||
|
||||
ActorRoot/feet conversion remains constant75.9 and sole-based rendering remains
|
||||
the existing modern bridge. Initial placement still uses the bounded floor query;
|
||||
this does not derive original visual pivot/height or generic transform semantics.
|
||||
Modern F3 noclip bypasses source physics and clears motion on exit; admission still
|
||||
uses the capsule24/render-height occupancy check. It is a debug policy, not a
|
||||
recovered radius60/100 overlap query. Full wrapper/registry remains open.
|
||||
|
||||
## Verification
|
||||
|
||||
Twenty managed body groups pass, independently reviewed: all ten original-code
|
||||
numeric references; prior support/landing ownership; angular-before-suppression;
|
||||
published-speed cutoffs; special-scene rejection; positive/nonpositive split;
|
||||
ceiling370; radius100 support/unclamped friction; actual VR04 root/render bridge;
|
||||
pending jump while uncontrolled; preparation/publication; retained jetpack/steering/
|
||||
landing and noclip return. These tests compile into GamePort.BodyPhysicsTests and
|
||||
are included in scripts/test.sh. Two existing explicit-source test projects now
|
||||
include the new dependencies; the initial suite compilation failure is retained
|
||||
in artifacts/body-composition/integration-initial.log, not reported as a pass.
|
||||
|
||||
Headless VR04300-frame replay and native Linux GTX1070/private Xvfb replay at
|
||||
1920x1080 both pass with zero enabled Vulkan validation errors. Native SDL receives
|
||||
move/brake/turn/jump and resizes800x600. Both end supported with one burst,
|
||||
travel403.88, max rise418.93 and energy20 (VR04 exemption). Saved readback shows
|
||||
the modern standing-foot bridge remains above the visible floor at the final
|
||||
replay position; this is a port image check, not source pivot comparison.
|
||||
|
||||
Logs/readbacks: artifacts/body-composition/body-tests.log, tutorial-jetpack.log,
|
||||
tutorial-jetpack.png and native/jetpack.log. Independent review is in
|
||||
[collision-body-implementation-review.md](collision-body-implementation-review.md).
|
||||
Full-suite, package and preservation results are recorded in progress.md after
|
||||
their completion. No native Windows runtime result is inferred from cross-builds.
|
||||
|
||||
## Next bounded work
|
||||
|
||||
Recover original physical-list and pair-collision eligibility for VR04 actor
|
||||
classes, plus dynamic nearest/last-polygon/reset order. Recover lab/outside's
|
||||
Player160/164/FENCE/LADDER policies, including control and root ownership, before
|
||||
using this body solver there. Keep the existing capsule baseline available for
|
||||
comparison. Shared camera eye/DEFAULT handoff remains the next independent C5
|
||||
contract; audio clock/banks and later implementation chunks retain their gates.
|
||||
@@ -91,6 +91,11 @@ jump fixture applies acceleration and gravity normally.
|
||||
|
||||
## Implementation and remaining gate
|
||||
|
||||
This section records the dispatcher-only stage. The subsequent
|
||||
[ordinary-body implementation](collision-body-implementation.md) compares all ten
|
||||
body references and enables the static subset in VR04; special/dynamic/root gates
|
||||
below remain explicit for further expansion.
|
||||
|
||||
OriginalStaticCollision is currently an isolated source dispatcher/support-grid
|
||||
component, invoked by tests. It preserves duplicate visits, retry state, negative
|
||||
Z upper-bound quirk and terminal publication. Its explicit geometry-enable input
|
||||
|
||||
@@ -16,7 +16,7 @@ runtime comparison. Coverage does not mean implementation completeness.
|
||||
| INPUT | Game interface+8C slot3C4→44DF80→475A70 reads controlled5099E4 and calls3CC; Jimmy interface+C0→426030. | SDL arrows/jump aliases; control gate, modern debug override; mouse/controller incomplete. | S/M/R, user Windows route. Input occurs in object traversal after physics; device sampling/focus and latency open. | Trace event pump, key/mouse and focus gates alongside retained registry order. |
|
||||
| MOVE |437940/439900 ground/air arithmetic; physics479D20 consumes queued impulse once before acceleration/gravity. | Player body/fire continue without ownership; input/controller gated; fresh/retained input order explicit. Root overhead wrapper now runs before movement/fire. Fixed dt and custom yaw/model conventions remain. | S/P/M/R. Bounded phases/ceiling implemented; complete base/registry and body response open. | Continue C4 traversal/callback/support integration and C3 base transforms. |
|
||||
| JET |437F90 controller;421FB0 effect; fresh constructor order places fire after Jimmy, both after global physics. States0..5, hold>.4,8s, energy. | Explicit state table with post-collision effect ticking and VR immunity. | S/M/R. Fresh same-pass countdown recovered; retained child lifecycle, sound and expiry→animation open. | Trace retained Jimmy/fire resets and phase end events before scheduler integration. |
|
||||
| COLL |479D20/47BD80 body;47B4B0 FIFO grid/retries;370/374/37C; signed material IDs; separate160 friction gate; support/suppression; overhead; dynamic boxes. | Source sphere and static dispatcher/support grid implemented as isolated components; route overhead wrapper live. Prepared IDs retained. Live24-unit capsule/feet and dynamic response remain provisional. | S/P/M/R. Ten original kernel, seven dispatcher and ten ordinary-body observations; managed dispatcher comparisons. Special contacts, live body composition, dynamic shared context and root rendering open. | C4: compose ordinary-body adapter against ten references, then explicit VR04 live subset. Lab/outside need special160/164/FENCE/LADDER and dynamic reclip ownership. |
|
||||
| COLL |479D20/47BD80 body;47B4B0 FIFO grid/retries;370/374/37C; signed material IDs; separate160 friction; radius60/100 and support/suppression. | VR04 uses ordinary source static body/support/friction; lab/outside keep24-unit capsule. Root+150 wrapper live for route. Dynamic response remains provisional. | S/P/M/R. Ten original kernel, seven dispatcher, ten body references matched in managed composition;20 body groups and native/headless VR04 replay. Special/dynamic classes and visual transform open. | C4: recover original actor physical/pair eligibility and shared dynamic context; lab/outside need160/164/FENCE/LADDER before solver expansion. |
|
||||
| ANIM | Engine morph10002DB0; linear interpolation10002F9A; game logical→OMT sync4624B0. | ASE sample timing, unconditional loop closure, pose/action aliases,1/60 advance. | S/P/M/R. Playback flags, rate, completion callbacks, transition order open. | Recover one-shot/loop/end notifications before more aliases. |
|
||||
| SCRIPT | Source AI/CAM/MCA dispatch and chains; task45F990 objective406F50 BEFORE records BEFORE per-entity424. | Pre-assignment objective selection and per-actor Carl override implemented; bounded synchronous director. | S/M/R. Script callbacks recovered for route; generic class coverage and reentrancy incomplete. | Continue other class-specific callbacks and reentrancy under the recovered owner/phase boundaries. |
|
||||
| CONTROL | Global5099E4 null during valid CAM/MCA; PlayerControlled completion target; DEFAULT447D..447F restores camera/UI/music. | Director raw ownership plus explicit debug effective override; eligible player body/fire continue; only input/controller tail is gated. | S/M/R. Raw/effective control and ordered preparation are implemented; full base/class wrappers and scheduler remain incomplete. | Continue full wrapper/base and collision contact phases around deferred LOAD. |
|
||||
|
||||
@@ -171,3 +171,11 @@ allowed where it resolves a core-system question, without waiting for every leve
|
||||
horizontal-first split,370, landing-before-velocity-clear, published160 friction
|
||||
and suppression; then VR04 live root/input/ceiling/RETURN checks. Trace special
|
||||
callbacks and dynamic reclip/global context before lab/outside replacement.
|
||||
- C4 ordinary-body composition implemented and matched against all ten copied
|
||||
body references. VR04 now selects the source static subset with live radius
|
||||
60/100, separate published160, control-independent body work and source landing/
|
||||
friction order. Twenty managed groups and native/headless300-frame jetpack
|
||||
replay pass; lab/outside capsule retained. Source and independent review:
|
||||
collision-body-composition-source.md, collision-body-implementation.md and
|
||||
collision-body-implementation-review.md. Other original VR04 dynamic class
|
||||
eligibility, special Player callbacks and shared dynamic contexts remain open.
|
||||
@@ -3,6 +3,19 @@
|
||||
Compilation, native runtime, original behavior and full feature completion are
|
||||
separate evidence categories. **The game is not fully reconstructed/playable yet.**
|
||||
|
||||
C4 ordinary body (2026-10-27 UTC): all ten original-code body references match
|
||||
managed composition. VR04 uses source static response/support/friction and live
|
||||
radius60/100; lab/outside retain the capsule. Twenty body groups plus full suite
|
||||
pass:129 Python+2 HUD, managed checks,27 zero-error enabled-validation GPU renders,
|
||||
SDL dummy lifecycle and539 unchanged originals. Native GTX1070/private Xvfb at
|
||||
1920x1080 passes300-frame jetpack input/resize/steering/landing. Logs/readback:
|
||||
artifacts/body-composition/. Source scope/independent review are linked from
|
||||
checkpoint/collision-body-implementation.md. Original dynamic actor eligibility,
|
||||
special callbacks, logical/render pivot and modern noclip occupancy remain open.
|
||||
Native Windows and whole-original-game comparisons remain unverified.
|
||||
The final expanded Python suite passes130 checks after the Init authored/live
|
||||
speed closure; the129-check full-integration log predates that extra regression.
|
||||
|
||||
C4 static composition follow-up: seven copied-original dispatcher fixtures match
|
||||
the isolated managed grid/retry component; ten copied479D20/support fixtures
|
||||
complete as references for future body composition. No live capsule replacement
|
||||
|
||||
@@ -182,3 +182,11 @@
|
||||
must explicitly own shared nearest/last-polygon state. Keep source published
|
||||
speed160 separate from controller608. Geometry-off gravity cancellation must
|
||||
not be reinterpreted as an ordinary prior-grounded jump rule.
|
||||
35. **Enable the tested static body subset in VR04.** Compose verified traversal,
|
||||
support and friction using original body-reference outputs. Reject special
|
||||
scenes/provisional dynamic resolver and keep lab/outside on the baseline.
|
||||
Preserve source60/100 radius changes through both sphere response and support;
|
||||
restore60 in the later Jimmy wrapper. Published speed160 survives control
|
||||
preparation separately from controller608. No dynamic-door geometry does not
|
||||
establish absence of other source dynamic actor classes. Modern feet/sole and
|
||||
noclip admission remain explicit policies; this is not whole-tutorial fidelity.
|
||||
@@ -1,5 +1,51 @@
|
||||
# Progress — 2026-10-26
|
||||
|
||||
## C4 ordinary body implementation — 2026-10-27 UTC
|
||||
|
||||
OriginalBodyPhysics composes the source static dispatcher, positive-Y versus
|
||||
horizontal-first split, ordinary contact370/374, support/landing, published160
|
||||
friction and suppression. All ten retained original-code body references match.
|
||||
VR04 now uses this source static subset; lab/outside retain the capsule pending
|
||||
special contacts and dynamic integration. The bridge uses actual radius60/100 for
|
||||
both sphere response and support, with grounded restoration in the later wrapper.
|
||||
Published body speed is separate from controller speed and survives script
|
||||
preparation/control loss until a controlled publication; Init restores authored
|
||||
speed (route default0). Ordinary callbacks cannot change root, so this subset
|
||||
permits fixedW1 publication; full callback reentrancy remains a special-policy gate.
|
||||
|
||||
An independent investigator cross-checked source phase/flag branches, rootY clamp,
|
||||
radius setter/getter and authored/live field chains with REA Evidence and guarded
|
||||
instructions. The same investigator reviewed the implementation and independently
|
||||
ran twenty body groups. No directly evidenced mismatch was found within the
|
||||
declared zero-angular/ordinary/static subset. Other original VR04 dynamic classes,
|
||||
generic rotations, initial/visual root and modern noclip capsule admission remain
|
||||
explicit gaps. Reports: checkpoint/collision-body-composition-source.md,
|
||||
collision-body-implementation.md and collision-body-implementation-review.md.
|
||||
|
||||
Full scripts/test.sh passes129 Python plus2 HUD tests, all managed groups including
|
||||
20 body and11 dispatcher,27 GPU completions with zero enabled validation errors,
|
||||
SDL dummy lifecycle and539 unchanged original hashes. Lab→tutorial→lab→outside,
|
||||
RETURN/scalar/input ordering, control lock, objective/save and jetpack regressions
|
||||
pass. Initial suite compile failed because two explicitly linked test projects
|
||||
needed the new body dependencies; fixed and rerun successfully. Logs under
|
||||
artifacts/body-composition/ retain both attempts.
|
||||
After the final authored/live speed guards were added, the complete Python suite
|
||||
passes130 tests in python-final.log (eight body-source groups,81 sites/12 targets).
|
||||
The prior full integration run's129 count precedes that extra source regression;
|
||||
no runtime implementation changed after its successful completion.
|
||||
|
||||
Native Linux GTX1070/private Xvfb at1920x1080 passes the300-frame VR04 SDL move/
|
||||
brake/turn/jump replay and resize800x600, with zero Vulkan validation errors.
|
||||
Native/headless source-body runs end grounded with travel403.88, one burst,
|
||||
max rise418.93, energy20 and two support landings; radius-dependent support is
|
||||
retained instead of flattening this diagnostic count. Final readback inspected;
|
||||
modern sole bridge is consistent, not original pivot verification. No new native
|
||||
Windows or whole-original-game comparison claimed. Baseline69d0187 remains intact.
|
||||
|
||||
Next: original dynamic actor/pair eligibility and shared reclip context, then
|
||||
Player160/164/FENCE/LADDER for lab/outside; C5 shared eye/DEFAULT remains separate.
|
||||
New package results will be recorded after the verified source milestone.
|
||||
|
||||
## C4 static dispatcher, contacts and ordinary-body probe
|
||||
|
||||
Independent REA investigations and primary integration recover47B4B0's reachable
|
||||
|
||||
@@ -23,6 +23,10 @@ probes and modern runtime checks are recorded separately.
|
||||
`collision-body-probe.md`, `collision-integration-review.md`: REA/static grid,
|
||||
contact material linkage/landing/friction and seven dispatcher/ten ordinary-body
|
||||
component observations. Managed dispatcher is isolated; live capsule remains.
|
||||
- `checkpoint/collision-body-composition-source.md`, `collision-body-implementation.md`,
|
||||
`collision-body-implementation-review.md`: exact source phase/radius guards,
|
||||
ordinary body composition matching ten original references, VR04 static subset
|
||||
and retained dynamic/special/transform boundaries. Radius100 changes support too.
|
||||
- `save-format.md`: full supplied TSK layout, task query/assignment and activation gates.
|
||||
- `analysis/lab-progression.md`: CAM/MCA/AI dispatch, original lab chain and skip/camera formulas.
|
||||
- `analysis/scene-entities.md`: exact entity-resource preparation and contact/sprite evidence.
|
||||
|
||||
+5
-2
@@ -90,8 +90,11 @@ plan in verified chunks. Earlier priorities below are a backlog.
|
||||
compared against seven original fixtures; route material IDs and metadata gate.
|
||||
- [x] Contact/landing/published-speed/friction contracts and actual special material
|
||||
coverage recovered with REA. Ten isolated original body fixtures completed.
|
||||
- [ ] Next: C4 ordinary body composition against ten numeric references, then
|
||||
VR04 live integration; special contact policies/dynamic reclip before lab/outside;
|
||||
- [x] C4 ordinary body composition matches ten numeric references; VR04 uses the
|
||||
recovered static subset with source radius/support/friction and published speed.
|
||||
Twenty managed groups and native/headless powered-flight replays pass.
|
||||
- [ ] Next: C4 original dynamic actor/pair eligibility and shared reclip context;
|
||||
special160/164/FENCE/LADDER contact policies before lab/outside replacement;
|
||||
full Jimmy/base wrapper/helper traversal and shared viewport/DEFAULT handoff.
|
||||
Physical re-registration chain is recovered; full implementation/order remains.
|
||||
C6 source channel allocation/
|
||||
|
||||
Reference in new issue
Block a user