Fix figure IK snapping and gate the library on a fail-hard motion checker
Three solver defects made limbs teleport, twist, or windmill: write-back angles wrapped at ±180 and lerped the long way around; branch flips landed on configurations the anatomical write-back cannot represent, silently pulling pinned extremities off their pins; and the degenerate straight-limb bend plane fell back to the camera axis instead of the anatomical anterior. solve_limb now verifies each branch reproduces the solved end before accepting it, resolve unwraps written-back angles toward the pose they replace, and the degenerate plane comes from the parent's anterior axis. render.py --check replays every exercise's full tween loop and fails hard on six invariants (pin fidelity, continuity, wraps, authored-vs-resolved drift, ground penetration, resolved ROM); --export refuses to ship a failing exercise. All 66 motions re-authored or retouched to pass: honest authored angles where pins used to override them silently, grounded feet on the seated machines, a vertical bench-press bar path, straight-armed child's pose, a butterfly stretch seated on the mat, and FK arms where pins forced impossible reaches. MotionSolver.swift mirrors the solver changes line for line, held by regenerated fixtures. Claude-Session: https://claude.ai/code/session_01PKptrgbx74peTwHGRxBojv
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<linearGradient id="grad-arm_l-0" gradientUnits="userSpaceOnUse" x1="169.3" y1="32.1" x2="169.3" y2="52.7"><stop offset="0" stop-color="#a2a8b3"/><stop offset="1" stop-color="#a9afba"/></linearGradient>
|
||||
<linearGradient id="grad-arm_r-1" gradientUnits="userSpaceOnUse" x1="165.2" y1="54.0" x2="167.0" y2="74.6"><stop offset="0" stop-color="#3a3f4b"/><stop offset="1" stop-color="#414652"/></linearGradient>
|
||||
</defs>
|
||||
<path d="M 121.0 157.5 L 207.2 157.5 L 207.2 150.2 L 121.0 150.2 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
|
||||
<path d="M 143.2 157.5 L 196.4 157.5 L 196.4 150.2 L 143.2 150.2 Z" fill="none" stroke="#b9bec9" stroke-width="2.1" stroke-linejoin="round"/>
|
||||
<g id="leg_l">
|
||||
<path d="M 164.1 90.9 L 168.9 122.3" stroke="url(#grad-leg_l-0)" stroke-width="3.78058" stroke-linecap="round"/>
|
||||
<path d="M 168.9 122.3 L 161.4 148.9" stroke="#86cfc5" stroke-width="3.5" stroke-linecap="round"/>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Reference in New Issue
Block a user