I have a scene with lots of shape3Ds such as cylinders. They are each inside their own TransformGroup to give them position and orientation. Picking works just fine with this so long as I call getLocalToVworld() to give me absolute x,y,z values within the scene.
If I rotate the scene with the mouse all is fine.
The problem is that if I rotate the scene programmatically picking still thinks the shapes are in the old locations despite everything looking fine on screen. How do I fix this?
Thanks for the help.
The docs
https://docs.oracle.com/cd/E17802_01/j2se/javase/technologies/desktop/java3d/forDevelopers/j3dguide/SceneGraphOverview.doc.html mention two forms of getLocalToVworld which take arguments and talk about nodes which are / aren't part of a shared subgraph being different but I don't get it. All my items have one common parent which I'm rotating.