Assigning distance between two point in unity C#

Viewed 38

I have a point A(x1,y1,z1) and B(x2,y2,z2). I want to find the coordinate of A by using the following equation.

x1 = x2 - dx,

y1 = y2 - dy,

z1 = z2 - dz (where dx,dy, and dz are the distance between A and B in vector form) However, I don't have the values of (dx,dy, dz). Therefore, I want to assign the value of (dx,dy, dz) in unity c#. How can I do that? I cannot use vector3.Distance(a,b) since I don't know the coordinate value of A Below shows the figure

0 Answers
Related