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.
Optional
import { sampleTransformPose } from '@datamoc/mwg/skeleton';const pose = sampleTransformPose({ id: 'idle', duration: 1, frames: [{ time: 0, rotations: {} }] }, 0.5); Copy
import { sampleTransformPose } from '@datamoc/mwg/skeleton';const pose = sampleTransformPose({ id: 'idle', duration: 1, frames: [{ time: 0, rotations: {} }] }, 0.5);
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.