i'm stuck how 1.5 handles a completely new way of positioning a child node. in the previous versions of irrlicht, a child position was related to the parent, but the unit of measurement was also the same. for example, we assume that node1 is a box of (5,5,5) and node2 a box of (10,10,10)
Code: Select all
node2->setPosition(core::vector3df(10,20,30));
node1->setParent(node2);
node1->setPosition(core::vector3df(0,1,0))
what's the absolute position of node1? in previuos irrlicht version it was (10,21,30). in 1.5 there is a new way of handling it. the unit measure is not the same, the unit of measurement for the position of the child's node is the dimension of the parent node.
in 1.5, after the above code, node1 will be in (10,40,30); right above the parent node, beacuse the new unit of measurement for the child node is not 1.0 anymore but the node2 x dimension, 10
now i don't want this, i want that the unit of measurements both for the parent and for the child are the same (1.0). how i can achieve these in 1.5?