Hi Charles,
The only problem is: every time I attach the camera to the PositionAttitudeTransform node, I get a segmentation fault. Is it possible to attach a camera to a PositionAttitudeTransform node?
In OSG, you can't put a camera as child of another node in the hopes of getting the camera to follow that node. The camera is the root of the graph, and everything under it is being rendered. So in adding the camera as child to another rendered node in the graph, you're creating a cycle in your scene graph, which results in an infinite loop.
You can either control your camera's view matrix each frame yourself (using viewer->getCamera()->setViewMatrix(...) ) or use a camera manipulator. If you want to follow a node you can use an osgGA::NodeTrackerManipulator (call its setTrackNode() method to tell it which node you want it to follow). So you could have your PositionAttitudeTransform updated by the Bullet object as you had before, and that's the node you would follow with the NodeTrackerManipulator.
Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay [email protected] http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

