Distance Matching Locomotion : Giving it a shot!

@dragon-kurve You should use FAnimCurveBufferAccess but it’s work only with curves compressed via “Uniform Indexable”, then you can get times and values by sample index. You should search nearest distance in this values and then get corresponding time value by it index.


FSmartName CurveSmartName;
AnimationSequence->GetSkeleton()->GetSmartNameByName(USkeleton::AnimCurveMappingName, CurveName, CurveSmartName);

FAnimCurveBufferAccess CurveBuffer = FAnimCurveBufferAccess(AnimationSequence, CurveSmartName.UID);

What do you mean about simulating CalcVelocity? Can you show it or describe?