ldk_keyframe_animation_sample

Evaluate a single track at the requested time without changing entities.

LDK_API bool ldk_keyframe_animation_sample(
 const LDKKeyframeAnimation *clip,
 u32 track,
 float time,
 LDKPropertyValue *out_value
);

Parameters

const LDKKeyframeAnimation *clip
Animation clip instance.
u32 track
Zero-based track index or track description.
float time
Time in seconds.
LDKPropertyValue *out_value
Receives the sampled property value.

Returns

True if the track has keys and its values can be evaluated.