Namespace WitShells.WitPose.Editor.Core
Classes
- BonePoseSystem
AUTHORITATIVE animation writer - the ONLY system allowed to write keyframes All pose edits (FK, IK, Muscle) flow through this system
- MusclePoseSystem
Muscle-based pose system - HELPER layer only Never writes to AnimationClip directly Forwards all bone transforms to BonePoseSystem
- SkeletonCache
Authoritative bone registry for humanoid skeletons Caches all bone data for fast lookup by gizmos, IK, and pose systems
- TwoBoneIKSolver
Two-Bone IK solver that mirrors Unity Animation Rigging behaviour. Solves entirely from first principles each frame — no incremental delta accumulation — so it never drifts or glitches.
Algorithm:
- Compute desired mid-joint position via Law of Cosines.
- Use the hint (pole vector) to define the bend plane.
- RotateRootToward desiredMid, then RotateMidToward target.
- Blend by weight.