Expand movement library across domains + add hip-hinge primitive - #1
Merged
Merged
Conversation
Engine: add a `hinge` action on the pelvis (parser action + pelvis ROM, max 120°). The renderer counter-rotates the hips against the pelvis tip so the legs stay planted while the torso pivots over the hip line — a true hip hinge instead of the faked spinal roll-down. Powers deadlift, bent-over-row, good-morning, and bow. Content: 26 new curated .movit examples across Education (single-joint ROM demos), Physiotherapy, Desk & posture, Sports/Martial arts, and Dance (the flagship, incl. an 8-count dance-phrase) plus hinge showcases. All render on the v0.1 rig with zero ROM warnings. Registered in the playground presets with domain tags so the gallery auto-groups them. Tests: new examples.test.ts parses every example and asserts zero errors and zero ROM warnings; hinge parse + ROM-clamp tests; a render test asserting the hip counter-rotation keeps the thighs vertical under a pelvis hinge. Docs: new docs/market-research.md (go-to-market + per-domain briefs, Dance as flagship); SPEC.md and llm-authoring.md document `hinge` and add a domain/dance authoring guide; ROADMAP marks the hinge unlock shipped. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WCktDrKYZpJjCb2apbqWp
Takes on the rest of the roadmap's engine unlocks (on top of the shipped hip-hinge), each with a matching movement batch, tests, and docs. Shared infra: - Generalize grounding to a bounding-box drop (index.ts) so any pose rests on the floor — standing/plank on feet/hands, lying/seated on back/glutes. - Plumb new IR fields through parser/schema/clamp/timeline: Phase.reaches and MovitIR.props, with `prop <type>` and `reach: <effector> <target>` syntax (no tokenizer change). Reach-to-target IK: wire the existing-but-unused solveCCD into the viewer. A hand/foot reaches a body landmark, the floor, or a prop anchor; runs after ground-lock. Movements: touch-toes, cross-body-reach. Lying & seated base poses: add supine/prone/seated to poses.ts (grounded by the bbox drop). Movements: glute-bridge, dead-bug, cobra, seated-forward-fold. Scene props + anchors: new props.ts builds chair/wall/bar meshes with named anchors merged into reach-IK. Movements: chair-sit-to-stand, box-squat, wall-sit, dead-hang, hanging-knee-raise. Hand/finger rig: one curl bone per finger off each wrist (mannequin + joints + rom + `fingers` group). Movements: make-a-fist, pinch-grip, finger-spell-demo, hand-wave. Tests: render.test covers reach-IK convergence, lying-pose orientation + bbox-grounding, prop anchors + reach-to-anchor, and finger curl; examples.test auto-validates all 15 new examples parse with zero ROM warnings (125 tests). Docs: SPEC, llm-authoring, ROADMAP (unlocks marked shipped), market-research, and README updated for the new syntax and capabilities. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WCktDrKYZpJjCb2apbqWp
devkokooo
pushed a commit
to devkokooo/posecode
that referenced
this pull request
Sep 1, 2026
…r-hardening Harden avatar selection and loading for posecode#124
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Engine: add a
hingeaction on the pelvis (parser action + pelvis ROM,max 120°). The renderer counter-rotates the hips against the pelvis tip so
the legs stay planted while the torso pivots over the hip line — a true hip
hinge instead of the faked spinal roll-down. Powers deadlift, bent-over-row,
good-morning, and bow.
Content: 26 new curated .movit examples across Education (single-joint ROM
demos), Physiotherapy, Desk & posture, Sports/Martial arts, and Dance (the
flagship, incl. an 8-count dance-phrase) plus hinge showcases. All render on
the v0.1 rig with zero ROM warnings. Registered in the playground presets
with domain tags so the gallery auto-groups them.
Tests: new examples.test.ts parses every example and asserts zero errors and
zero ROM warnings; hinge parse + ROM-clamp tests; a render test asserting the
hip counter-rotation keeps the thighs vertical under a pelvis hinge.
Docs: new docs/market-research.md (go-to-market + per-domain briefs, Dance as
flagship); SPEC.md and llm-authoring.md document
hingeand add adomain/dance authoring guide; ROADMAP marks the hinge unlock shipped.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_018WCktDrKYZpJjCb2apbqWp