Hi,
USkeletalMeshComponent::EndPhysicsTickComponent does the
SyncComponentToRBPhysics(), then the
BlendInPhysicsInternal().
The first function updates the position of my unit. The second does all the animations.
I want to change the animation based on the position, which means I somehow have to get in between these two.
Now, BlendInPhysicsInternal does this:
ThisTickFunction.GetCompletionHandle()->DontCompleteUntil(ParallelBlendPhysicsCompletionTask);
, which gave me the idea to somehow catch the firing of the EndPhysicsTickFunction, then immediately insert the calculation task the same way (DontCompleteUntil), which would ensure that it is inserted, and thus executed, before the ParallelBlendPhysicsCompletionTask.
So, is there a way to catch the firing of the EndPhysicsTickFunction?