Realm

oa::anim::bake

Sample a curve uniformly into frame_count values beginning at start_time. Errors Returns an error for non-finite or non-positive frames_per_second, a zero frame_count, a sample time beyond the representable range, or a sampling failure. Donor: oa::FnAnim::bake.

FnRust public API

Function Documentation

pub fn bake<T: AnimCurveValue>( curve: &AnimCurve<T>, start_time: Duration, frames_per_second: f32, frame_count: u32, wrap_mode: AnimWrapMode ) -> Result<Vec<T>>
Sample a curve uniformly into frame_count values beginning at start_time. Errors Returns an error for non-finite or non-positive frames_per_second, a zero frame_count, a sample time beyond the representable range, or a sampling failure. Donor: oa::FnAnim::bake.