Log inGet started
Package

LocomotionContacts.module

Newest version

README.md

LocomotionContacts

Contact correction for a locomotion clip authored on the canonical reduced rig. correct(clip) works on a copy: it forward-kinematics every frame from canonical-rig.json, then for each side finds stance runs where the toe sits within 0.03 of the clip's lowest toe height, moves less than 0.25 vertically per second, and the foot-contact confidence in channel 2 (left) or 4 (right) is above 0.8, keeping runs of five frames or longer. Within a run it anchors the toe at the contact's first frame, solves the engine's two-bone IK on that leg's chain at a weight that engages and releases over three frames, so no new snap boundary appears, leaves frame 1 and the last two frames alone, and restores the foot's world rotation about the new ankle. It returns the corrected clip with a contactCorrection line in its provenance, plus a report of the intervals, the largest correction and the largest tip error.

Nothing in this world requires it yet.