Hi,

i would like to get the matrix of my PAT node in a local function?
What is the way of getting PAT matrix?
should i generate a new Matrix using position and attitude of my PAT node?
i tried to cast to MatrixTransform using  
myPat->asMatrixTransform();
but it returns NULL so i could not use getMatrix() function of MatrixTransform 
class.
i checked Transform but 
virtual computeLocalToWorldMatrix(Matrix& matrix, NodeVisitor* nv);
which was overriden in PAT class as well i think needs a NodeVisitor through 
node callback implementation. ( Can i use this function if i set nv = NULL as a 
function argument?)
but i want to reach matrix in one of my member function not in a node callback.
What should i do?

Thank you!

Regards,
Lâ-Edrî

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39399#39399





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to