Animation Pose Snapshot Live Training - New Facing Direction Calculation

Hello,

I followed the Pose Snapshot Live Training Animation Pose Snapshot | Live Training | Unreal Engine - YouTube and I found that the way to determine the Facing Direction sometimes lead to false results:
[video]https://streamable.com/kdz8w[/video]

I really dont fully understand the math behind it but I found that the Up Vector gave positive Z values when facing up and negative ones when facing down:
[video]https://streamable.com/l6akr[/video]

So I changed the Calculate Facing Direction function a bit:

https://forums.unrealengine.com/filedata/fetch?type=thumb&filedataid=147784

Maybe someone might find this useful.