Get the distance of a touch while touch phase is moved

Hello,

i’m really stuck with the problem i mentioned above. I want to get the distance of the touch while the touch phase is moved and the finger is continually on the screen. The direction is redundant. The function should work like this:

while the touch phase is moved and the touch distance is > 5
do something…

The touch has a deltaPosition. It’s kind of a local position as if the fingers most recent position were relative to 0,0,0. the magnitude is the distance, accumulate it.

Hi Im kinda a beginner and I want to know how to calculate the distance when u press with 2 fingers to calculate the distance between the two fingers thanks so much