Does anyone know how to get the distance between points in geometry nodes?

enter image description here

I attach de 3.5 .blend file:

Thank you,


1 Answer 1


you can use this node setup here:

enter image description here

as you can see in the spreadsheet: the viewer node shows the distance between point 0 and 1.

Of course you can change the indices to your liking.

By this node setup you get all distances to point at index 0:

enter image description here

Note: that's why the distance at index 0 is 0.

  • 1
    $\begingroup$ Thanks so much Chris! But what I need is get the distance from each point to the rest of the points. $\endgroup$
    – Miguel
    Dec 19, 2022 at 20:09
  • $\begingroup$ can u tell us your "end goal" what you want to make with it? $\endgroup$
    – Chris
    Dec 19, 2022 at 20:15
  • $\begingroup$ Yes, I want to calculate the distance between all points, so they don't collide when I move them. Like your last example but between all points. $\endgroup$
    – Miguel
    Dec 19, 2022 at 20:18
  • 2
    $\begingroup$ @Miguel If I'm understanding your intention right, it's probably a much more complicated question (for the current state of Geometry Nodes) than you might realize. I'd suggest either taking a look at Simulation Nodes (for ex: youtube.com/watch?v=OqHOvP59L0o) or for "plexus" setups like this: youtube.com/watch?v=tj6ZZYO5qPY $\endgroup$
    – Kuboå
    Dec 19, 2022 at 20:40
  • $\begingroup$ Thanks, Kuboå! I had already checked the "merge-by-distance" Seanterelle solution and I've checked the "power-points" Entagma solution but I think none of them is a good option for what I'm trying to do. The first one doesn't give you the distance between points and the second one involves creating many points and it's a bit confusing for me. Anyways, in case someone wants to help me, what I'm trying to replicate in GN is the "Primordial Particle System": nagualdesign.github.io Explanation: youtu.be/makaJpLvbow $\endgroup$
    – Miguel
    Dec 21, 2022 at 17:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .