Realm

oa::anim::create_clip

Create a validated AnimClip from frame-major uniform samples. samples must hold a whole number of joint_count frames. Errors Returns an error for a zero joint count, non-finite or non-positive frames_per_second, empty or partial-frame samples, a non-finite transform, or a frame count beyond the supported range. Donor: oa::FnAnim::createClip.

FnRust public API

Function Documentation

pub fn create_clip( skeleton_id: u32, joint_count: u32, frames_per_second: f32, samples: &[Transform] ) -> Result<AnimClip>
Create a validated AnimClip from frame-major uniform samples. samples must hold a whole number of joint_count frames. Errors Returns an error for a zero joint count, non-finite or non-positive frames_per_second, empty or partial-frame samples, a non-finite transform, or a frame count beyond the supported range. Donor: oa::FnAnim::createClip.