Perhaps you could get the distance form one point to the other,
and create an array of inbetween coords.
You know that x,y,z difference can be found between the two points.
If you divided each one by, for example, 5, then you made an array out of each
coord+(i*5), you could get inbetween points?
Not real code btw...
//Need to be filled with start and end point.
Point3D start;
Point3D end;
//Stores the inbetween coordinates?
Point3D inbetweenCoords = new Point3D(5);
//The difference between coords.
float xDiff = start.x - end.x;
float yDiff = start.y - end.y;
float zDiff = start.z - end.z;
//The distance between each inbetween point.
float xInc = xDiff/5;
float yInc = yDiff/5;
float zInc = zDiff/5;
//Loop through, creating inbetween points.
int i=0,num=5;
while(i<num)
{
inbetweenCoords[i] = new Point3D(start+(xInc*i),start+(yInc*i),start+(zInc*i));
i++;
}
That might not work right away, but if you need inbetween coords, it seems to be like itis a starting point. I know Ill be looking into this myself:)