0

Is there a function to get the world coordinates of a nested transform?

Dirt-e 4 years ago updated 4 years ago 0

I have a bunch of nested transforms. Think of it like a matchbox inside a shoebox inside a suitcase inside a room.

I can move the objects around and see the results in 3D. All fine!!!! If I move the suitcase, then the shoebox and the matchbox move with it. Awesome!

Now I need to know the distance of the matchbox to the wall. Which means I have to determine the world coordinates of the matchbox. Is there a function that gives me the coordinates of an object expressed in its most "ancestral" ancestors coordinate system? Or will I have to traverse all transformations involved manually?