applyKeyFrame

fun applyKeyFrame(keyFrame: ZKeyFrame, parentWorldPose: ZMatrix4 = ZMatrix4.Identity)(source)

Writes keyFrame into this skeleton’s root hierarchy as world ZBone.poseMatrix values.

Merge rule (per bone, TRS channels): each bone starts from its rest ZBone.transform. For every channel (position, rotation, scale), if keyFrame carries a value for that bone, the sampled value replaces the rest value for that channel only; omitted channels keep the rest pose. This is not additive delta blending (future multi-clip blending would define its own rules on top of this baseline).

Parameters

keyFrame

Sampled local overrides per bone id (typically from zernikalos.action.ZSkeletalAction.sampleAt).

parentWorldPose

Parent world matrix for root; use identity when root is the scene root.