Skip to content

hm5-types (source format) / BoneConstraint

Interface: BoneConstraint ​

An IK CONSTRAINT (Spine / Rive style, owner 2026-11-22): the tip of a chain of bones reaches for another bone's origin. Solved after the keys (FK), in BoneRig.constraints order — THE maths: @utils/pure/bonesposeSkeleton.

Properties ​

PropertyTypeDescription
bend-1 | 1which way a 2-bone chain bends
bonesstring[]the chain, root-most bone first, tip bone last (each the child of the one before): 1 = aims, 2 = an arm / leg, more = a tail
idstring-
mixnumber0 = FK only … 1 = the target decides. Keyable: BoneRig.tracks [constraint id].mix holds the mix itself (not an offset); without keys this value.
namestringunique among the rig's constraints
stretch?booleana chain too short to reach grows (its first bone scales along itself)
targetstringthe bone the chain's tip reaches for (not part of the chain, nor below it — usually a root bone, so a planted foot stays planted)
type"ik"-

HereSplash — 2D animation for the web