I’m trying to perform this calculation:
diff_X = objA.tx - objB.tx diff_Y = objA.ty - objB.ty diff_Z = objA.tz - objB.tz result = sqrt ( (diff_X*diff_X) + (diff_Y*diff_Y) + (diff_Z*diff_Z)
I was able to recreate it in the node editor but its a bit verbose and certainly susceptible to input error
Is there a way to optimize this?
P.S. You can ignore the matrix nodes. I was just trying to get the world positions.