Skip to content

hm5-types (source format) / MeshSkin

Interface: MeshSkin ​

How a mesh object's points follow bones (THE maths: @utils/pure/skin, document skin.ts). The points — pulls (deform) included — are carried by each bone's pose RELATIVE TO its rest pose, blended by weight, so nothing moves while the bones are at rest.

Properties ​

PropertyTypeDescription
bonesstring[]the bones followed: the columns of weights
layerstringthe bone layer (same timeline)
weightsnumber[]one row per mesh point, one column per bone (weights[point * bones.length + bone]), 0..1; a row adds up to 1, or to 0 for a point that follows nothing

HereSplash — 2D animation for the web