Hi Robert,

I will definitely take a look at the osganimate example. 

But this is a question I asked in the post above:
If I declare a PAT node in my main(), is the only way to access and modify it 
through update callbacks ? The reason why I'm asking this is that tough I'm 
passing the PAT node by pointer, it gets a value of (0,0,0) when I check its 
value in the function arguments in bold below:

called from main() while loop:-


Code:
setBackhoe(gpsLat, gpsLon, mapNode, surface, objectPlacer, backhoe1PAT);



and observed the value of the arguments while debugging: 


Code:
void setBackhoe(double gpsLat, 
                double gpsLon, 
                osgEarth::MapNode* mapNode,
                osg::Node *surface,                
                osgEarthUtil::ObjectPlacer* objectPlacer, 
                [b]osg::PositionAttitudeTransform* backhoe1PAT[/b]
                //osg::Vec3d &positionVector
                )
{....
}



Thanks

Sanat

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





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

Reply via email to