Hi everyone,
Thanks in advance for your insight! Game object A is a child of another object. I need to find the distance between game object A and game object B. That’s no problem using Vector3.Distance. But my challenge is this: I need to figure out the distance from A to B along A’s local x axis only. I script with C#.
I would really appreciate any feedback on this! Many thanks.