blue_sky said:
I was referring to "spatial" distance while in your explanation i think you are referringt to the space-time distance. Am I right?
Yes, I meant spacetime distance. Points in GR are points in both space and time.
I reread your original post, and you're asking about the distance between objects, not points (sorry). The answer is then long and complicated... Here goes anyways:
Everything in relativity should be thought of as occurring in spacetime, not space. So each body traces out a timelike line. There are several ways you can define distances, but it depends on what exactly you want to do.
The simplest definition supposes the existence of some given reference frame where there exists a particular time parameter. Find the coordinates of each body at a fixed time t, and then compute the geodesic distance between those points. This definition is not unique at all, so there's really no point in using it unless you are trying to understand the results of some (thought) experiment done in a known reference frame.
Next, you can pick a particular value of proper time for one of the bodies, t. Call its position in spacetime at that time z
1(t). Now look at the set of (spacelike) geodesics which start at z
1(t) and are orthogonal to that body's four-velocity (this is well-defined despite being nonlocal). At least one of these will intersect the other body's worldline. Compute the geodesic distance between that point of intersection and z
1(t) to get a distance. This is really very similar to the first method. The difference is that I'm effectively defining a preferred coordinate system by using the rest frame of one of the bodies. This is a very natural thing to do, and is an invariant. There are cases, however, where the prescription fails to work for various reasons. It's usually ok though.
There are other definitions, but they get more complicated (for example, there is one based on null separated points between the two worldlines that is very useful when calculating electromagnetic fields).