Animation : Find time of global min/max position of a given bone

anonymous_user_a95c0d08
Sat, 19 May 2018 18:11:37 +0000
Character & Animation

Hey,

given a bone and an animation I’d like to get the time when that bone is at it’s highest/ lowest position. ( and then create notifys at those times )

I’ve searched through UAnimSequence and its parents. My idea would be to use

UAnimSequence::ExtractBoneTransform(
    const struct FRawAnimSequenceTrack & InRawAnimationTrack,
    FTransform & OutAtom,
    float Time)

and interate through the length of the animation to get an array of transforms over the whole animation. But I doubt this will be enough to find the max/min position since the bone is affected by its parents in the hierarchy. So even if I found a min/max position this would be a local min/max and not a global one, right ?

Does anyone know an easier way to do this?

2 posts - 1 participant