Hello, how do you measure the x y z of two objects in a 3d world game that doesn't rely on mouse clicks? for example, the distance (depth) between the character and the tree?

https://ibb.co/jvYLk17