Hi Vincent,
When I set the PAT as Tracked node... is PAT is rotated and translated... camera do not follow it...
Does your PAT have geometry under it? Or is it just a PAT in space without any children?
We had a problem like that before, where if a transform (for us it was an osgSim::DOFTransform) had no geometry under it, it could not be followed by a NodeTrackerManipulator. The reason is that the NTM uses the node's bounds to calculate where it should track, and a Transform without anything under it has invalid bounds (a default-constructed bounding sphere with radius = -1).
What we did to fix it is to add a ComputeBoundingSphereCallback to the transform, which returns a bounding sphere of center = (transform.translation) and radius = 0.1. That makes the NTM behave properly.
Not sure if that's your problem. If it isn't then I don't know, your code looks good. If you send me a complete example (perhaps a modified osgviewer.cpp with your code) I could have a look.
J-S -- ______________________________________________________ Jean-Sebastien Guay [EMAIL PROTECTED] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org