Here's a bit of a hackaround with your code.
I've used the old setXRotation in the coinwidget as a wrapper for the model (now promoted to be a class member). Model now its own setXRotation(float angle), but this is just a standard method available to the proxy. The order of adding children to the root is important - think left to right - so
root->addChild(myRot);
root->addChild(new SoCone);
root->addChild(myRot);
root->addChild(new SoCone);
To copy to clipboard, switch view to plain text mode
works but
root->addChild(new SoCone);
root->addChild(myRot);
root->addChild(new SoCone);
root->addChild(myRot);
To copy to clipboard, switch view to plain text mode
appears not to as the cone is now left of the rotation. Anyway the attached zip file was working for me. But remember that this technique is rotating the objects in "world space" - not just rotating the camera postion around the scene.
Pete
Bookmarks