Hello there. I will try to make this as short as possible. The title is probably a bit confusing, so I will try to explain this a little better. In short, I have two parts, Part A and Part B. What I want is to get the intersection point of the two “lines”, which are “created” based on where the part is facing. Let me explain with pictures:

These are Point A (Green) and Point B (Red), their front face on where the black arrow is:

Now, lets draw two lines that pass through the two parts:

Now that we have the lines, we can finally get the intersection point (Yellow):

Now, to make this easier, we could completely disregard the Y-axis as it is not important to our findings. This way, we have two 2-dimentional points consisting of (X, Y). From then onward, we can easily get the intersection point by using `(d - b) / (a - c)`

for the `x`

and `a * x + b`

for `y`

, assuming that one line is `y = ax + b`

and the other is `y = cx + d`

. My only issue is that I have no idea on how I could “create” an equation like that from the part. I can easily get a supposed `x`

and `y`

value and make it a “point”, but I have no idea on how to get the direction of the line. I have never worked with LookVectors, so I have no idea how they work. My question is, how would I be able to get a linear equation from a part, assuming that `X`

is X, `Z`

is Y, and the LookVector (where the front face is facing)? If you could help me, that would be amazing. Thank you for your time and help.