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?
Thanks, I'm taking a look at this, it seems complicated, but i'll keep trying. If you could explain me a little bit how to achieve what I want, i would be thankful ^^ If not, its good too :) Thanks anyway! (Sorry for bad english...)
– ThiagoTejoOne way to project onto A is: convert to A's local coords, take the local z only, covert back to global. So, if what you want is "kind of like projecting," using local-coords is like doing a slow projection, with more chances to jump in and change things. Plus projections and basis changes can be difficult to visualize. It seems like people tend to either "get" one or the other.
– Owen-Reynolds