distance vectors in array

idk if my question already in waitlist or not, so forgive me if this topic overlap.
Can i asking how to get distance from each array elements in an array ??

Distance of what? :slight_smile:

If you are asking how to get a distance in math, it is the absolute value of A - B (aka “positive difference”).

float A = -50.f;
float B = 300.f;
float Distance = FMath::Abs(A - B);

As a blueprint user that would be in the kismet math nodes.

1 Like

Ah, you mean this?

image

1 Like

ahh, i’m sorry, the first time post i gave all information, but have no idea why it’s not up so this topic just for sure i didn’t missing something of forum.
i wanna get distance of vector to each other in array.
i made one simple logic to generate vectors and put them in an array.
then i wanna get distance between them to make sure distance between them 10<distance<20.

Right. But do you mean each point with every other point? Or certain pairs of points, or?..

ohh, you’re right, i didn’t think about that point. so it must be atleast have one distance with other point >10. ( wait, i need to thinking about this one more time )
Can i asking which node name’s " GET " in your example ? is that get a copy ?

Yes, copy. Unless you want to update the value.

1 Like

Thanks @Roy_Wierer.Seda145 Thanks @ClockworkOcean , i’ll thinking more about this math before asking again <3

1 Like