This command gives the x, y, or z coordinate of an object. The syntax is
x = object.GetX();
where x is the x coordinate of object .
If the y or z coordinates are desired, then use the GetY or GetZ commands.
oworld = New World(); ocamera = New Camera(oworld); sphere = oworld.CreateSphere(50,50,50,25,25); //Create second sphere. Sphere2 = oworld.CreateSphere(10,10,10,10,10); ocamera.MoveBack(1200); ocamera.Walk(); sphere.AddPosition(100,200,30,5); //Move it in 5 seconds. // Other sphere follows it. Sphere2.Follow(sphere,50,60,10,10,10); //Loop While(1) { SetText(sphere2.GetX()); }