Hi, all Below is my code: is it possible somehow store matrix transform of PAT inside of children (gizmo) ?
Code: osg::ref_ptr<osg::Switch> sw = new osg::Switch; sw->setName("Switch"); sw->addChild(scene,true); sw->addChild(getLineCube(pos,11),false); osg::ref_ptr<AgentShape> myPos = new AgentShape; // This is PAT myPos->setPosition(pos); myPos->addChild(sw); myPos->setName("AgentShape"); osg::ref_ptr<osg::Geode> geodeGizmo = new osg::Geode; osg::ref_ptr<GizmoDrawable> gizmo = new GizmoDrawable; gizmo->setName("gizmo"); gizmo->setGizmoMode( GizmoDrawable:: NO_GIZMO); gizmo->setTransform(matrixTrasform of PAT); geodeGizmo->addDrawable( gizmo.get() ); geodeGizmo->setCullingActive( false ); myPos->addChild(geodeGizmo); return myPos; Thank you! Cheers, Drake ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=62224#62224 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org