urt-rs / docs /research /QVM_LOCOMOTION.md
nmarshall's picture
qvm: grounded gait and footsteps
ae1c46e
|
Raw History Blame Contribute Delete
1.91 kB
# Complete locomotion gait bob and footstep consumer
RE-568. Reproduce with `python3 scripts/analyze_qvm_locomotion.py`; check with `python3 scripts/test_qvm_locomotion.py`. The [machine report](qvm-locomotion.json) retains source identity and bounded fixtures.
The grounded continuation48209..48713 now runs after the actual47884 prefix in the same parent frame. No forward/right input with speed>=5 retains the bob/animation state; below5 resets bob to0 and selects idle41 or crouch torso68/legs42. Moving crouch chooses torso69/76 or68/71 from entity flag1 and class4/tag22, plus legs39/40/42. Button16 selects walking torso70 and legs22/23 (34/35 with state128). Running selects torso63 for classes0..3,74 for4,62 otherwise; backwards flag16384 selects24 (35 special), boost button256 with right0 and forward>80 selects43 (34 special), otherwise38 (34 special).
Crouch/walk use source float.3, run uses.4. Bob advances with float32 integer-dt multiplication/addition, truncates and masks255. On ((old+64) xor(new+64)) bit128 crossing, dry running calls45887: surface8192 suppresses event39, otherwise its parameter is surface>>20. Level1 emits32, level2 emits41, level3 is silent; dry walk/crouch suppress footsteps. Actual animation/event children run with their timer/type/toggle gates.
120 complete fixtures include idle speed exactly5, signed commands, boost80/81/strafe boundaries, surface parameters and suppression, bob wrap, water levels0..3 and an airborne regression. Remaining: map requests/events to skeletal/audio assets, validate legal live state and implement/source-compare the Rust animation/audio controller. Full native rendering/gameplay remains open.
No original executable/full QVM/native collision/physics/rendering executes. Native responses and legal input domains are supplied or unverified where stated; full runtime/macOS/Linux Rust/Bevy/Solari gameplay remains open.