Sorry i don't think i explained the question clearly.
getPosition does return the x,y,z coordinates. What i am looking for is to set the position of a second or third object etc. relative to the position of the first object.
i.e. First object getPosition returns (2,5,10)
then x = 2, y = 5, z = 10
Second object setPosition(x, y+10, 10)
I'd like to find the values of x, y, and z seperately so that i can implement the above.
Thanks for your post.
|