I know that the best way to get the distance for a Vector3 is using Vector3.distance, etc, etc.
But what I’m looking for here, is how to get the Distance between the two “local X axis” for both Vector3 and their rotations.
I don’t know how to explain this so well, so I made this image:
I want to know the “gap” between these two positions, for exemple.
Both are facing the same way, and have the same Y position ( are on the same height )
So they differ on the X and Z axis.
I want to get the distance between them using a perpendicular axis.
Ahn, I really dont know how to write this down, but I guess you guys understood…
I know how to do this using global values, for exemple, the global X axis or Z, like the first image, but I need them to be rotated, how do I do this?