mwg API
    Preparing search index...

    Function sampleTransformPose

    • Sample every channel with the same timeline as rotations: holds the first frame before it, the last past the end of a one-shot, and wraps a looping clip.

      Parameters

      Returns TransformPose

      import { sampleTransformPose } from '@datamoc/mwg/skeleton';
      const pose = sampleTransformPose({ id: 'idle', duration: 1, frames: [{ time: 0, rotations: {} }] }, 0.5);