Native player movement
The server advances player motion in memory at 60Hz with one force/velocity integrator and distinct longitudinal, arrival, lateral and angular controllers. Ordinary input and player following share this state. Strafing and turning continue without pose packets; held input has no age cap. The implementation includes outdoor scene collision, body projection, gravity and basic swimming transitions, plus ordinary outdoor jumping and landing. The shared geometry reads selected 14.9.1 grids, cell surfaces and water directly from the bundled data. Player geometry records the held-wall and body checks and the remaining lifecycle, indoor, platform and special jump modes. Flight uses the same integration and collision paths.
Ordinary ground motion
For each admitted native substep, use body quaternion q, longitudinal velocity
v, position p, body mass M, force cap Fmax and speed cap V:
F = sign(forwardControl) * Fmax * rotate(q, forward)
v = clampLength(v + F*h/M, V)
p += h * (strafeControl * rotate(q, right) + verticalControl * worldUp)
p += h * v
Zero forward control supplies no force; it does not itself discard existing velocity. Matching stop events and direction reversal explicitly Halt. The force uses only the sign of a nonzero forward control, with no arrival damping. Follow instead computes its existing arrival force and uses the same force and velocity integration. The four-unit target offset is specific to following.
Strafe contributes displacement directly, independently of capped longitudinal velocity. It has no acceleration ramp or combined diagonal speed cap. For RunSpeed 5 at full health, ordinary walking caps longitudinal velocity at 1.5, but right/left strafe uses magnitude 2.0125. Simultaneous settled walking and strafing therefore travels faster than either individual axis.
For nonzero turn control, angular motion happens after displacement:
- With zero horizontal longitudinal velocity, rotate the body quaternion around
world up by
turnControl*h, then refresh body forward. - Otherwise rotate longitudinal velocity by that angle. The ordinary outer orientation pass subsequently reconstructs body facing from velocity.
Positive yaw rotates forward +Z toward +X. Multiple native integration substeps share the outer orientation pass; rebuilding body facing after every substep changes curved movement. Reverse movement has distinct body and movement quaternions: the body faces opposite travel. Packets use body heading.
The native integrator rejects nonpositive or greater-than-four-second frame intervals, and subdivides admitted intervals at a default maximum of 0.4 seconds. It has no 20-second held-input expiry. Outdoor gravity and contact response run through the shared integrator and its outer-frame alignment. Frame cadence, nonzero ground orientation modes remain verification boundaries; the flat-ground reductions above do not replace those branches.
Incoming movement actions
The authoritative handler accepts the implemented decoded action IDs1..14, 20 and22/23. It ignores other IDs before anchoring motion, placing the supplied pose, cancelling follow, checkpointing or relaying a packet. This is the current server support boundary; it is not a claim that the historical server accepted only this set.
Native CharDCMove activation does not whitelist physical helper events by their origin. Relaying27/35 can execute an observer's flight entry/removal even when the Go controller ignored that event. Checking only the server's flying flag therefore misses observable client corruption. Water24/31 and frozen21/34 are other internal transitions that belong to their authoritative effect paths. The helper enum alone does not authorize a client request.
The bounded native producer census finds fixed sender actions1..13,20,22,23, 25,26 and32. Crawl25 is bound to an exported API without an ordinary input registration. Actor event162 produces26, separate from ordinary sit/stand86/87, which submits helper28/33. Special action79 and internal leave-sneak paths can produce32. The server must implement those complete flows before accepting their unsupported movement events. Generic exported MovementChanged accepts caller-supplied integers, so the fixed census is not a universal whitelist.
The helper has elevation callbacks15 (+3 world-Y) and16 (-0.8), with distinct state gates and cached-control quirks. No ordinary keyboard producer for them is established. Camera Up/Down callbacks do not establish actor elevation input. Backspace selects run/walk through a special-action entry whose availability also matters. In the captured flying client it emits no22/23 and leaves flight unchanged; ordinary ground Backspace does toggle2/3. Physical mode admission is shared below; complete mode callbacks remain a separate TODO.
local/player-flight-input/research/helpers/ retains117 complete bodies, all35
builder entries,1,024 predicate cases and29 callback bindings. The independent
research/producers/ ledger retains80 complete bodies and120 input registrations,
including constructor-to-serializer field tracing. Both have source-only hash
verifiers. Negative tests check equipment27/35 and unknown0/127 without pose,
helper/body, follow, ownership, output or database changes. A native transport
test submits an unsupported event followed by valid forward input and a ping;
only the valid movement reaches the observer and the connection remains usable.
The final source passes all1,310 top-level server tests (14,295 results),58 focused
roots (137 results),151 race roots (443 results), data checks and go vet.
Both new regression roots fail against the previous handler. Ten final paired
GPU WASM captures cover flight, ordinary live unequip, ground run/walk,
sit/explicit stand and jumping, with no page errors. The same vehicle item returns
to inventory slot64 and is present there in SQLite. Source/packet/state checks
are retained under local/player-flight-input/; cleanup removes three owned
visitors and the fixture, preserving unrelated rows and the single LAN preview.
Physical movement admission
The controller and authored flight transitions share the native primary-mode
predicate, client/game/kkr.dll/lifted-0022.c / sub_36044640. It runs before
the transition's component-state checks and
before copying old strafe state into elevation state. Rejected controls cannot
change forward/strafe caches, jump state, the preferred walking/running mode or
that component history. Sitting admits turning but rejects locomotion; swimming
rejects strafe starts and walk/run changes. Already-walking22 and already-running23
are rejected, too. This predicate does not expand the supported incoming actions.
Supported movement packets still place their reported pose and cancel follow before helper admission, and still reach observers. Native activation has that same ordering. Rejecting the whole packet would incorrectly discard those common effects. Unknown and equipment-only incoming actions remain rejected earlier by the separate request support check.
The paired WASM baseline demonstrates why caching a rejected input matters: holding W while seated sends1, then explicitly standing with X restores mode2. Both native helpers remain idle, while the previous Go controller starts moving until W release reports the original pose. Regression tests cover that sequence, water entry/rejected controls/exit with both preferred modes, rejected stop and jump controls, repeated walk/run history, admitted turning and ordinary mode changes, and preserved pose/follow/relay ordering.
All 1,315 server roots (14,321 results), 54 focused roots (126 results), 144 race roots (409 results), data tests and go vet pass. Four new regression roots fail against the previous implementation. Paired GPU WASM captures measure 1.60m of hidden server movement before the fix and no displacement after it. Ordinary water keys emit 5/6, 7/8 and 22 while both native helpers reject those transitions; preferred mode 3 remains unchanged. A reloaded observer receives idle swimming. Both clients report no page errors. The steep-bank trace separately records a native owner/observer mode difference at rounded packet coordinates; water-edge classification remains in TODO and is not claimed as exact trajectory parity.
The predicate retains the source's eight-mode rules. Existing server lifecycle
support includes walking/running, swimming, flying, sitting and the living-player
frozen callbacks below. Sneak remains pending. The verified source
tables remain under local/player-flight-input/research/helpers/; this
milestone's tests and paired traces are under local/player-movement-mode/.
Sit and stand
Ordinary CharacterAction86/87 submits helper28/33 through the same primary-mode predicate as movement. Sit additionally rejects active forward state3, strafe state3 or turn state5. It tests component state, independently of cached scalar controls, current speed, gravity or jump phase. A rejected sit cannot grant the server's seated recovery multiplier or treatment eligibility. Its acknowledgement still reaches both clients, whose native helpers apply their own admission.
Accepted sit changes primary to8, preserves preferred walk/run and copies the usual old strafe state into elevation history. Entry calls Halt once: ordinary velocity and cached speed clear only when cached speed is nonzero. Independent gravity, falling, controls, orientation and jump phase remain. Seated physics blocks longitudinal manual/follow steering while retaining direct lateral input, turning, gravity and contact. A seated landing clears physical jump height but cannot submit helper14 through primary8; its secondary4 remains until another admitted transition changes it.
Normal stand restores the preferred ground mode from8, preserves motion and performs no Halt or position lift. Features4-clear stand enters frozen helper1 while retaining the seated actor flag and independent gravity. Its native callback does not refresh raw173/425/430. RestrictAction53068 mask4 controls that same permission; do not equate the physical helper with raw MovementMode173.
Water transitions preserve actor posture independently of the physical helper; see water and retained rest.
Sources: client/game/kkr.dll/lifted-0022.c, sub_36046B40, sub_36046C90,
sub_36046D60, sub_360447C0; client/game/kkr.dll/lifted-0023.c,
sub_360497A0; client/game/qqr.dll/lifted-0006.c, sub_42011BC0.
Complete source bodies and independent action/physics checks are retained under
local/player-posture/research/{actions,physics}/.
The posture change passes all 1,329 server roots (14,366 results), 35 focused roots
(115 results), 167 race roots (534 results), the data packages and go vet.
All eight new regression roots fail against the earlier implementation. Exact
source manifests, source checks and paired GPU WASM captures are retained in
local/player-posture/.
Eight final ordinary-keyboard cases verify rejected moving sit, idle sit, seated turning, stand, mid-jump sit/landing, preferred running, seated late join and running stand. Both native helpers and raw stats173/425/430 agree with server posture, with no WASM page errors. These captures establish the selected state and final-contact checks; they do not claim bit-identical intermediate motion.
Frozen movement and permission changes
Living-player permission changes use the existing template-derived restriction predicate. Only a change in effective permission dispatches movement callbacks. The detached outcome first settles the old controller; its new helper state is published only after the effect transaction commits. Failed expiry/removal leaves the original effect and controller intact for retry. World entry initializes the helper from persisted active effects before readiness.
On restriction, the native actor wrapper conditionally submits FullStop19, then freeze21. The shared sit/FullStop predicate checks forward state3, strafe state3, turn state5 or primary7. FullStop retains primary/preferred mode, resets all input pairs and secondary, and clears cached forward/strafe/turn. Direct restricted stand33 skips that wrapper. Freeze21 and restricted stand33 select primary1, conditionally Halt and clear cached forward/strafe/turn, retaining actor rest, input-pair history, elevation and gravity. Only entry from flight7 lifts position by0.1, clears elevation and restores effective stat197 orientation. The worn vehicle remains equipped.
Frozen1 rejects locomotion, jumping and sit/stand, but admits turn9..12 and landing14. Physics therefore continues through the common integrator, including direct elevation, falling and collision. It must not return early just because Features4 is clear. Final permission restoration submits34, restores preferred walk/run and clears actor rest without resetting gravity or current controls. If already in deep water it subsequently attempts24 even when34 was rejected. Seated8 rejects21/34; its restriction and expiry therefore retain seated mode unless an independently admitted water transition changes it.
Maintained-source ledgers under local/player-frozen/research/ verify190 frozen
bodies,90 sneak bodies and39 independently checked FullStop bodies, with full
hashes and inert bindings. These overlapping counts are not unique functions.
Actor byte+70 is stationary; byte+94 is engine deletion, not stationary or HP0.
No stationary gate is established in the demonstrated player physics chain.
The native signed permission counters explain overlapping restrictions: initial1, two applications produce0/-1, and only the final removal restores1. Flags0 mask0x20000 suppresses callbacks and latches permission clear; it is not a general NPC/owner test. Its initial provenance and the full death/posture ordering remain open. The server retains its existing death policy and separate NPC controller; this milestone does not complete every actor's frozen lifecycle.
Seven new regression roots cover28 results, including retained rest/history, independent physics, both preferences, seated/deep-water expiry, flight exit, FullStop admission, failed delete/ignored delete/deferred commit and warm/cold entry. All seven roots fail against the previous production implementation. The final code passes1,345 server roots (14,419 results),88 focused/race roots (277 results each), data package tests and go vet.
Fifteen paired GPU WASM captures compare the old server with the candidate,
then repeat the candidate with walking preference. Offline fixtures extend owned
program42110 from its authored15 seconds to60 seconds for observation. Ordinary
control-editor relocation, keyboard turns/forward, observer reload and natural
expiry verify both clients' helper, permission count and final preferred mode,
with no page errors. The old server remains112.59m above the settled clients;
the candidate reaches their16.41m floor. Intermediate trajectories remain a
material limitation: maximum sampled differences after all three actors are
above120m are27.59m in the running capture and51.75m in the walking capture,
the latter alongside the full regression suite. Relocation also creates brief
actor-absent and pre-effect-replay samples; these are retained and counted.
These checks establish callback behavior and settled contact, not trajectory
parity. Evidence and exact-source verification are in local/player-frozen/.
Sneak's recovered flow is special action19 -> CharacterAction163 request, then server acknowledgement162 -> movement26. Ordinary send suppresses26 while seated; the receiver requires its weapon-holder state and no effective InFight410. Helper26/32 changes primary6/preferred and presentation/Features128, preserving rest, velocity, controls and gravity. The server now supports the request/acknowledgement flow and gates incoming26 on prior approval. Incoming32 exits sneak. See Aimed Shot for the explicit PvE concealment rules and deferred observer invisibility.
November5 A5 dependency: the issued Agent rifle and stocked Gripo now use this lifecycle for an opening Aimed Shot. Bounded retained evidence establishes the 163/162/26/32 sequence; authoritative concealment admission and damage remain explicit provisional rules. Native input and server regressions are recorded in the Aimed Shot document. Reopen historical detection research only with a concrete new source or reproduced failure.
Water and retained rest
Water entry submits helper24 through ordinary admission, replacing seated8 with swimming4. Exit submits31 and restores preferred walking2/running3. Both copy accepted component history without standing the actor or clearing raw425=25 and 430=2. Entry clears cached lateral input when its component state is non-idle, preserving that state itself, and clears elevation input. Physical mode remains owned by the initialized helper rather than being rebuilt from the rest flag.
Longitudinal movement and following share the native helper1/8/9 exclusion. Resting actors can therefore swim and follow after water entry or exit. Attack submits normal stand33 only from helper8. An explicit stand admitted during swimming clears actor rest while retaining helper4 and velocity. Recovery still uses retained rest; transient water/movement updates keep the periodic database checkpoint cadence. Remaining frozen and sneak lifecycle gaps stay in TODO.
Observer snapshots publish raw425/430 separately after the physical state. These generic stat setters do not select a helper or stand the actor. This preserves mixed swimming/ground mode with rest for late observers. Normal owner reconnect continues to reset live rest. The ordinary X toggle reads physical mode: after water exit its first press sits again, and the next press stands.
Sources: client/game/kkr.dll/lifted-0022.c, sub_360447C0,
sub_36046B40, sub_36046C90, sub_36046D60; lifted-0024.c,
sub_3604BA20; lifted-0026.c, sub_36053BE0; lifted-0035.c,
sub_36078FC0; lifted-0037.c, sub_3607E690.
Complete source bodies, initialization bindings and independently checked rules
are retained under local/player-water-posture/research/.
Nine regression roots cover both preferences, swimming/exit, component history,
recovery/checkpoint cadence, explicit swimming stand, attack/follow and late
observer publication. Seven roots fail against the previous implementation;
the recovery and explicit-stand checks preserve existing behavior. Eight paired
GPU WASM cases exercise ordinary vehicle removal, seated falls into water,
forward swimming, exit and late joins with both preferences. Both native helpers
and raw173/425/430 agree, with no page errors. The first X after running water
exit reseats; the next stands. Settled ground endpoints agree with Go within
0.1m; intermediate fall/water trajectories are not claimed identical. Attack
and follow admission are covered by source and Go checks, without claiming an
ordinary UI capture of those interactions. Evidence and cleanup checks are in
local/player-water-posture/.
All 1,338 server roots (14,391 results), 126 focused roots (396 results), the same
126 roots under the race detector, data tests and go vet pass. The suite
manifest binds the exact Go source, assets and test executable. The independently
rebuilt server matches the shared HTTPS preview; owned players/items are removed
with unrelated database rows and integrity preserved.
Ground mode requests during flight
Accepted walk22/run23 requests leave flight while keeping the item worn, its model and its bonuses. They set the preferred ground mode, enable new falls, raise Y by float32(0.1) through position-only placement, and clear vertical control. They preserve vector velocity, existing gravity, ordinary controls and helper component history. Equipment removal shares that placement and control update; it still applies its own authored effect when the item is removed after an earlier ground-mode request.
The native callbacks have different orientation rules. Walk restores stat197
after placement, so an idle pitched body levels on its next ground frame. Run
keeps orientation mode4, including its three-dimensional facing. Selecting run
must not invoke the full equipment-removal callback and restore mode0.
Sources: client/game/kkr.dll/lifted-0022.c, sub_36046270, sub_36046080
and sub_360468F0.
A new observer loads the snapshot's helper before later worn OnWear effects. An authored53138 effect then enters flight again, overriding a serialized ground mode. The replay checks the worn functions for53138 and restores2/3 after OnWear through the native mode-only message575F6628. That message preserves follow. A following0x94 pose anchor removes the exit callback's extra lift without another helper transition. Include idle and following actors; the usual active-motion filter alone skips both cases. Repeated same-mode requests reject before callbacks, so another ready refresh does not accumulate height.
The source-only initialization ledger under
local/player-flight-ground/research/initialization/ binds71 complete bodies
and34 input hashes. It establishes the concrete SCFU reader, worn-effect order,
mode-only consumer and correction guards. No lift-free live helper-snapshot
setter was established. Pose anchoring still runs ordinary collision/contact
logic; it does not prove that intermediate placement has no physical effects.
All 1,321 server roots (14,343 results), 60 focused roots (148 results), 150 race roots (431 results), data tests and go vet pass. Four regression roots fail against the previous controller; the observer-ordering root separately fails against the previous replay. Native transport tests cover idle and following actors for both modes.
Paired GPU WASM captures use explicit C2S22/23 test packets through the ordinary JS transport, with read-only guest probes. The real remote client lands in walk2/orientation0 or run3/orientation4 and retains that state across two reloads per mode, within0.00001m of the server's settled position. The synthetic sender's native controller intentionally stays in flight until normal UI removal. Its fall from Y60 and the already-grounded remote produce different contact histories on human restoration; ordinary movement reconciles their positions. Normal UI wear/removal returns the same item to slot64 in SQLite, and both clients report no page errors. These are settled-state and effect-order checks, not a claim of exact airborne/loading trajectory parity.
Flight transitions and facing
The shared OnWear iterator consumes authored function 53138 in order with shape and scale functions. Accepted entry selects helper mode 7, disables new falls, raises relative Y by float32(0.5) through position-only placement, then stores orientation mode 4. Removal restores the preferred walking/running helper mode, enables new falls, raises Y by float32(0.1), clears only vertical control, and restores the player's stat 197 orientation. In the supported player data, raw 197 is zero; equipment/nano modifiers supply its effective value. Other nonzero ground orientation algorithms still need implementation and native checks.
Position-only placement retains vector velocity and independent vertical velocity, records the requested Y for fall-height history, and aligns using the previous orientation mode. Equipment completion predicts old motion first and publishes the ordered effects only after its inventory transaction succeeds. The native helper rejects flight entry/removal from inactive 1, swimming 4 and sitting 8. A worn flight item and an accepted physical flight mode are distinct. Client movement packets do not invoke these equipment transitions.
Disabling falling does not cancel an existing jump or fall. Existing independent vertical velocity still accelerates at -20 and clamps to +/-50 until actual contact lands the actor. Flight retains world veto, segment/sphere collisions, upward ground correction and landing. It skips slope restrictions, downward ground snapping and admission of new falls or deep water. Removal close to the ground can snap using the resized vehicle body before human restoration; removal high above ground starts a fall using the requested lifted Y.
Orientation mode 4 reconstructs facing from full 3D vector velocity when cached speed is nonzero, otherwise from body forward. It rebuilds up from worldY and retains negative direction's reverse facing, with the native matrix fallback near a half-turn. Independent vertical velocity and direct strafe/vertical input do not enter this orientation. Held turns rotate around worldY after displacement; mouse pitch/yaw instead redirects vector velocity immediately through the pose setter. Changing orientation mode alone does not flatten facing or redirect V.
Worn-state reconstruction restores flight without repeating live displacement. Native OnWear still lifts each newly loaded owner/observer actor. Ready replay therefore ends with authoritative position correction action 0x94, pass-on 0. Its high bit selects the native owner's position-only correction branch; ordinary 20 is ignored for that actor. A remote actor consumes the same flagged packet as ordinary full-pose action 20. Late observers also receive an anchor for idle flying players after their OnWear initialization. Repeated ready acknowledgments do not replay effects or corrections.
Maintained-source evidence and independent verifiers are retained under
local/player-flight-movement/research/transitions/ (75 complete bodies) and
research/integration/ (65 complete bodies). The ledgers bind helper tables,
flags, setters, quaternion conversion and initialized constants to source hashes.
The companion research/input-admission/ ledger verifies50 complete bodies for
the UI jump producer, permission bits and ordinary equipment admission.
No guest calls or writes are used. TestPlayerFlight* covers committed deadlines,
ordered entry/removal, independent gravity, vector retention, full 3D and reverse
facing, vertical/half-turn cases, held turns, rejected swimming transitions,
forged movement events, failed commits and owner/idle-observer initialization.
Two headed GPU WASM clients check live activation, owner and observer reconnects, pitched forward turns, reverse motion and removal from a pitched hover. Activation agrees at Y16.91. Initialization's compact anchor rounds it to 16.875 on both clients, without accumulating another lift. Settled curved forward/reverse position differences are below 0.07 m. After removal at Y60, both native clients and the server land at Y16.786125 and level their facing. The removal-facing regression reproduces the mismatch before its repair. A timed ordinary jump overlaps live equip: both clients retain descending independent velocity after entering flight, continue gravity and land at Y16.520000, agreeing with the server within 0.000003 m. Space while already flying is intentionally suppressed by the native UI producer before helper dispatch. Curved-motion samples are asynchronous: the largest raw difference was 0.846 m with up to 57 ms between native and server reads under concurrent race testing. The captures retain timestamps and explicit timing bounds; they do not establish bit-identical trajectories. Broader input, water and special-mode combinations remain separate TODOs. The high-altitude initialization rule is described below.
The final code passes all 1,300 top-level server tests (14,271 results), 91 focused
roots (290 results), 213 race roots (808 results), the data checks and go vet.
local/player-flight-movement/ retains exact source coverage, regression failures,
hardware/native packet captures and the independently checked source ledgers.
All six owned test visitors and their fixture item are removed afterward;
cleanup verifies unrelated SQLite rows unchanged, foreign keys and integrity.
The single LAN HTTPS8443 preview remains available for manual play.
Controlled outdoor height
The native controlled player's SimpleChar.Run calls CheckHeight(129) before Vehicle.Run. On non-dungeon tilemaps, a global Y strictly greater than129 is placed at129 with ordinary SetRelPos. This position-only setter preserves vector velocity and independent gravity, stores the requested position as history and runs surface alignment. The subsequent physics frame may move above129 again; the next outer update repeats the limit. Idle, flying and falling actors use the same rule. The engine-dying/deletion branch skips it; HP0 is a separate state.
The predicate follows the selected playfield resource's tilemap reference. CHGA tilemaps are non-dungeon; GNDA/UOHA are dungeon. The existing Outdoor flag matches this predicate for all363 available catalog playfields. Grid152 references GNDA tilemap153 and is exempt, as are ordinary indoor maps. Geometry-provider availability and map names do not decide the height rule. Unknown/unavailable maps remain outside this resource verification boundary.
Initial SCFU placement accepts Y900. The native controlled marker is set after that placement, and the next actual actor update applies the height limit. Neither FullCharacter nor CharacterReady gates that branch. The server keeps the authored initial spawn and starts intrinsic movement during loading, while continuing to reject loading-time client input. Position changes remain in memory until the ordinary checkpoint.
Remote native actors skip the height helper. When the authoritative simulation applies it, the server sends the completed frame's position with action0x94, pass-on0, to initialized actors in the playfield, including loading observers. The owner's high-bit branch applies position only; remote actors consume the same packet as full-pose action20. The ordinary integrator and read-only range prediction share the limit and its position-only setter with flight effects.
The baseline headed WASM trace first reads the same owner actor at Y900 with
history900/q0, then36ms later at Y128.992 with history129/q-.39999998. The remote
actor remains near900. The source rule accounts for this discrepancy directly;
compact wire coordinates and websocket buffering are not its cause.
Sources: KKR3606EA50/36071C20, LLR3802D200/38039DD0,
BBR250A3DD0 and QQR420108F0. Hash-verified complete-body ledgers, resource
classification and packet consumers are retained in
local/player-altitude-init/research/{owner-placement,height-callbacks,wire}/.
Their verifiers cover85,49 and62 complete bodies respectively. The resource
census resolves367 catalog maps through258 selected tilemaps; all363 available
maps have the expected Outdoor value.
The loading-schedule ledger binds45 complete bodies across the frame processor, elapsed-time timer, external-input activation, world traversal and Ready producer. The frame delta is sampled before pending SCFU activation and can include loading time; a newly activated actor consumes that whole delta. Ready follows resource workload checks and a countdown. Neither packet receipt nor Ready is an exact actor-age clock. The fall-sync ledger checks63 complete bodies and the bounded vertical-velocity writer census: the inspected Ready and actor snapshot consumers do not provide an absolute independent-gravity reset.
Two headed GPU WASM clients verify the human Y900 fall, live flight entry, Y900 flight initialization, both-client reloads and held pitched upward motion. The flying owner, observer and server settle at Y129, including after reload. Held forward input continues while the limit repeats; releasing it leaves all three at the same position. Human clients and server reach the same Y16.41 floor. No WASM page errors occur. The first post-Ready fall trace peaks at3.17m owner/ 2.82m observer; the final run alongside automated tests peaks at5.68m/4.61m, with sampling gaps up to74ms. Native gravity with52ms then1596ms frames reproduces sampled Y128.94592/q-1.04 and Y95.44576/q-32.96. These intervals are inferred from native state, not measured frame times. The live60Hz server uses smaller steps; matching the endpoint does not establish identical trajectories. Cold-loading and mid-fall late-observer cadence remain explicit TODOs.
TestPlayerAltitude* checks the strict boundary, indoor/Grid exemptions,
initial wire placement and simulation clock, prediction/live agreement,
preserved falling/velocity/controls, upward-flight frame ordering, loading-time
gravity and observer corrections, actor presence versus HP0/sitting, and deferred
position persistence. Global engine scheduling and parented indoor coordinate
transforms remain outside these ordinary outdoor checks.
The final source passes all1,308 top-level server tests (14,289 results),57 focused
roots (146 results),149 race roots (437 results), data checks and go vet.
All eight new altitude regression roots fail against the previous production
implementation; its below/equal/indoor/Grid/unknown negative boundaries pass.
local/player-altitude-init/verification.json binds exact source/assets, test
executables, source ledgers, native captures and the independently rebuilt
preview executable. Cleanup removes four owned visitors and one vehicle item,
checks all unrelated SQLite rows unchanged and validates foreign keys/integrity.
The single LAN HTTPS8443 preview remains available.
Cached controls and transitions
Forward/reverse start events set signed throttle and refresh speed/force before physics. Reversing direction clears velocity. A matching release stops immediately; a mismatched release is rejected by the native component state. Walk/run changes preserve throttle and velocity, refreshing parameters so a lower speed cap takes effect during the next integration.
Strafe speed is sampled when strafe starts:
S = min(15, encumbranceAdjust(2 + 0.0025 * healthAdjustedRunSpeed))
It has no forward-speed 0.1 floor and no walk/run branch. The conditional encumbrance flag's live setting is not established; this is not evidence to enable a new overload penalty. Cached strafe control must not silently change on every physics tick when a stat changes.
Turn starts choose 3.5 radians/second for neutral longitudinal helper state and 1.5 otherwise. This tests the helper state, not physical displacement: pure strafing can retain the idle rate. Forward start/stop refresh an active turn's rate; reverse start/stop omit that refresh. Current input signs alone therefore cannot reconstruct every cached native control.
| Actions | Component effect |
|---|---|
| 1 / 2 | Start / stop forward. Stop requires the matching forward state. |
| 3 / 4 | Start / stop reverse. Reverse stop restores positive retained direction. |
| 5 / 6 | Start / stop right strafe. Repeated matching starts and wrong releases reject. |
| 7 / 8 | Start / stop left strafe; opposite strafe starts replace the direction. |
| 9 / 10 | Start / stop positive yaw. Stop requires the matching turn state. |
| 11 / 12 | Start / stop negative yaw. Stop requires the matching turn state. |
| 20 | Pose correction retaining input/follow state. |
| 22 / 23 | Walk / run preference and parameter refresh. |
Admitted pose correction precedes these component callbacks. When position or rotation changes, native SetRelPosRot preserves speed magnitude and realigns velocity with the corrected body forward and retained movement direction. A subsequent reversing or stopping callback can then Halt.
Follow control0 retains movement direction. A reverse-to-follow transition can therefore retain reverse body facing and reverse cached speed even though the arrival force still points toward its target. Physical follow start submits the matching signed start event; arrival submits the matching stop. Guessing positive throttle from every nonzero follow velocity loses this distinction.
Automatic pose correction
The separate engine CheckMotionUpdate path submits ordinary CharDCMove action20 without testing whether the player is following. Every 61st engine Run, it checks integer epoch seconds since the last movement-message timestamp against strictly greater than 20, requires an owned actor, and tests its vehicle's cached speed against approximately 0.01. The timestamp reset is tied to the movement message's pass-on condition. This is not a fixed 21-second network interval or a distance threshold.
That cached speed is the length of longitudinal velocity, calculated before the separate lateral displacement. Pure flat-ground strafe with zero residual longitudinal velocity can move while cached speed remains zero, so the automatic pose-update gate does not establish periodic updates for every moving player.
A baseline 35-second hardware walking capture sends a forward start, one automatic ordinary action20 at 20.982 seconds, then a forward stop. The follower also sends an ordinary action20. During the target's 20-second server prediction horizon, the public map remains unchanged for 0.884 seconds while the native target moves 1.324 units, then resumes after the correction. This demonstrates a brief cap freeze, not permanent loss of target motion in that run.
A baseline 25-second pure right-strafe capture covers 50.301 units on the verified flat route while native longitudinal velocity stays exactly zero. The server map remains at the start until release. Its wire stream contains only strafe start5 and stop6, with no action20 during the hold. Removing the forward predictor's time cap alone cannot fix this failure.
The same hardware character verifies the source control values:
| Ordinary input | Observed native control / behavior |
|---|---|
| Walking forward / reverse | Throttle +1 / -1; speed still about0.3 after the initial100ms. |
| Right / left strafe | Cached lateral scalar +2.0125 / -2.0125; longitudinal velocity zero. |
| Walking forward + right strafe | Both controls retained; about2.35 units in the one-second exercise. |
| Stationary right turn | Cached angular scalar3.5; no positional displacement. |
| Right turn then forward | Forward callback refreshes angular scalar to1.5. |
| Right turn then reverse | Reverse callback retains angular scalar3.5. |
| Forward + right strafe + right turn | Helper bytes [2,3,1,3,4,3,0,5,4,1]; all three controls retained. |
These are sampled GUI exercises with frame/event timing, not native float-bit equivalence tests. Each starts from an observed neutral control state. Immediate post-key-release probes can precede native frame processing; the following exercise's neutral state and the wire releases provide the applicable evidence. The first direction probe used the wrong scalar interpretation and is excluded; a separate corrected integer probe verifies reverse direction-1 while active.
Evidence and implementation checks
Maintained-source bodies, full source/body hashes, initializer/IAT/vtable bindings
and source-only verifiers are retained under local/player-movement-research/:
longitudinal/findings.md: N01-N08 and F01-F02 bind force, integration, start/reversal/stop, speed/mass, body heading, pose anchoring and follow direction.lateral-turn/findings.txt: exact action5-12 gates, cached strafe/turn values, integration order and component serialization, with machine-readable linkages.pose-updates/: engine producer, caller, time import, threshold and timestamp reset evidence. The cache-speed producer is traced independently of displacement.runtime/: headed Chromium GPU screenshots, page errors, reassembled wire messages and read-only guest state/public-control probes. Owned fixture changes use the normal control editor; no native calls or guest-memory writes are used.
The three independent source ledgers verify 78, 75 and 23 complete maintained
bodies respectively; overlapping functions are not unique additional procedures.
runtime-verification.json indexes the source checks, nine control exercises,
reverse-direction probe, long strafe and walking-cap measurements. Page-error
logs are empty. All three owned players are removed after closing their clients;
unrelated SQLite rows are hashed unchanged and foreign-key/integrity checks pass.
Those baseline measurements precede the shared server simulation.
The 42-byte PlayerVehicle snapshot must retain actual velocity, all ten helper bytes, preferred mode and four cached controls. Some helper fields depend on command history; resetting unrelated bytes to constructor defaults does not reproduce the native writer. Initial spawn and readiness replay must represent both ordinary motion and follow targets consistently.
Authoritative simulation
server/player_movement.go owns transient velocity, previous position, retained
direction, cached controls and component history. The server advances ordinary
inputs first, snapshots follow targets, then advances followers so chains and
cycles use consistent target positions. Maps, portals and interaction ranges
read this same state. Stat and equipment changes anchor the previous motion
before applying new movement parameters. Routine motion does not write SQLite;
the existing periodic checkpoint persists pose, and cold loading starts neutral.
Regression tests cover initial acceleration, forward/reverse movement beyond 20 seconds, independent lateral displacement, simultaneous controls, stationary turns, matching and mismatched releases, cached rate changes, pose corrections, reverse-to-follow arrival, loading/death/root handling and existing resource and range consumers. Checkpoint auditing verifies no per-tick writes and one durable pose update. Player snapshots retain all ten actual helper bytes and four cached controls; neutral defaults cannot reconstruct command history.
Late reverse observers
The native PlayerVehicle reader restores reverse subtype2 and signed throttle, but omits QQR retained direction. Its constructor starts positive. An action3 replay alone can reject because the helper already represents reverse; native physical-start callbacks can subsequently install forward helper state. A hardware late join reproduces forward travel and rejection of the owner's stop4.
Replay now sends ordinary stop4, start3, then current pose20 before any follow
controller. This admits the native SetDirection(-1) callback whether the helper
still holds reverse or has become forward. Cached lateral and angular controls
remain intact. The accepted reverse transition necessarily Halts: a late observer
briefly accelerates from rest instead of retaining exact velocity. The snapshot
contains no direction field and a lossless original-server sequence has not been
established. Source-only evidence is retained in
local/player-movement-research/reverse-replay/; it verifies64 complete bodies,
the creation/reader chain and all retained direct direction setters.
Implementation evidence, automated logs and hardware captures are retained in
local/player-movement-implementation/. Nine short control exercises match the
native cached values, with sampled horizontal server/client differences below
0.14 units. A final 25-second, roughly 50-unit strafe has a sampled difference
below 0.07 units, rather than a frozen map. A 35-second moving-target follow
exercise samples 36.6 seconds with maximum target/follower horizontal differences
below 0.11 units and final follower difference 0.022 units. Its target sends start1,
one periodic correction20 and stop2. Reverse late-join retesting verifies
negative direction, reverse throttle and the final neutral stop. Timing, native
frame cadence, compact pose quantization and collision remain comparison bounds;
these measurements do not establish float-bit equivalence.
Owned clients and test players118/119 are removed after testing. Cleanup hashes all unrelated SQLite rows unchanged and verifies foreign keys and integrity; the single LAN HTTPS8443 preview serves the final movement executable.
The final Go code passes all 1,211 top-level server tests
(13,994 results), 18 data tests, 143 focused race results and go vet.
exact-suite-manifest.json records complete root coverage and source hashes;
verification.json links these checks to runtime, preview and cleanup evidence.
The wider scene geometry, slope, water, platform and nonzero ground orientation matrix remains open. Establish live Chest contents mass and the encumbrance flag before adding policies for them. Expand the combined lifecycle matrix and investigate a lossless late reverse initialization only with evidence.