with (lower case) a and b being the directions of the lines, their actual points are not important. They could be directional coefficients or normalized vectors.
It seems like a job for Vector3.Cross? Unfortunately I don’t understand how it works.I just get zeroes and small numbers with GetNormals(A, Vector3.Zero, B)
Vector3 GetNormal(Vector3 a, Vector3 b, Vector3 c)
{
// Find vectors corresponding to two of the sides of the triangle.
Vector3 side1 = b - a;
Vector3 side2 = c - a;
// Cross the vectors to get a perpendicular vector, then normalize it.
return Vector3.Cross(side1, side2).normalized;
}
Seems like basic math, but I could really use some help with this!