Hi Zach, The Node::getWorldMatrices() method will return a list of matrices, one for each world position that the node is placed in - so if you have multiple parental paths you'll have multiple matices, of you have one parental path then you'll just have one matrix.
Alternatively you could use Node::getParentaNodelPaths() to get the list of NodePaths and do track the matrices yourself. Robert. On 1/21/07, Zach Deedler <[EMAIL PROTECTED]> wrote:
Hello, If I have a few matrix transforms how can I get the world positions? matrix1->matrix2->matrix3 //matrix3 is a child of matrix2 which is a child of matrix1 How can I get the position of matrix3? Is it matrix3->getWorldMatrices(root)->front()->getTrans()? Thanks a lot! Zach _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
