Skip to main content

sample_pose

Function sample_pose 

Source
pub fn sample_pose(
    clip: &AnimationClip,
    time: i64,
    delta: i64,
) -> Vec<Transform>
Expand description

The pose of a clip at a time: the two samples around it, interpolated (normalised quaternion lerp for rotations, linear for translations), with the original’s loop arithmetic. The root’s rotation is reset and its translation becomes a movement delta, as in the original.

Original: Animation::GetPoseAtTime, Runtime 0x1800fd530.