Andrew Burnett-Thompson wrote:
> Yes i'm probably trying to do something different to you. 
> 
> I want to get/set by matrix as well as position, attitude, scale. If you want 
> just to set/get by matrix alone then as mentioned osg::MatrixTransform does 
> the job. 


If you use a MatrixTransform you specify a matrix.  I believe you can create 
the matrix you want (representing all 3 operations) using:

Code:

void makeTranslate( const Vec3f& );
void setRotate(const Quat& q);
void setTrans( const Vec3f& v );




Check the matrix include for the full list of functions.  Then:

Code:

void setMatrix(const Matrix& mat)




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





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

Reply via email to