You seem to have almost answered your own question there lol
Quote: "- You specify the XYZ cordinates of a object lets say a cube.
- The you want that this plane is always on the same XYZ as the Cube, no matter if the Cube moves. The Plane always is on the same XYZ coordinate as the Cube.
So maybe something like:
cx = dbPositionObjectX (1)
cy = dbPositionObjectY (1)
cz = dbPositionObjectZ (1)
"
Assuming your cube is object number 1, and your plane is object number 2, you would place the plane at the same place as the cube by placing the following code inside your main loop :
dbPositionObject(2, dbObjectPositionX(1), dbObjectPositionY(1), dbObjectPositiobZ(1));
That would make the plane(object 2) move with the cube(object 1) by placing it at the same place the cube is each game loop.
Of course, you could change the behaviour slightly by omitting or offsetting the values that you pass to dbPositionObject. You could also pass it the variables : cx, cy, cz from your post above(thought make sure they are floating point types instead of integer, it doesnt make alot of difference until you need to fine-tune your object placement, then having a real number makes a difference lol)...
EDIT : LOL too slow, seriel velocity got there first
If it ain't broke.... DONT FIX IT !!!