How do I track the distance between two parts of a skeletal mesh?

I need to find a way to check the distance between the left foot and the right foot in the animation blueprint. Does anyone know how to do this?

The feet of you character should have a bone with two different names. Something like “foot.l” and “foot.r” (you can look them up in the SkeletalMesh Window). Create two different sockets for those. So for example “Left Foot” and “Right Foot”. You can also do this insight the SkeletalMesh editor window.

Now you can get the Character inside the Animation Blueprint. From that you can get the Mesh. And from the Mesh you can call “Get Socket Position”.

This should give you the position of the foot.