|
Sorry for replying to my own email but I’ve been searching the web and there seem to be a lot of people with the same problem as me. But I found an answer. To get the position you need to call the get(Vector3f ) method on a Transform3D. You get the Transform3D from the TransformGroup. Something like this: myTransfromGroup.getTransform(tempTransform); tempTransfrom.get(tempVector); System.out.println(tempVector.toString()); This outputs the position as a String. To get the absolute position, traverse the scenegraph and add all the vectors together that precede the target object. ie. Call it on the root, then the child of the root, etc.
Hope this helps all the other people who have tried to defenestrate a monitor. Rich Bone Birmingham University |
- [JAVA3D] Getting an objects position Richard Bone
- Re: [JAVA3D] Getting an objects position trz
- Re: [JAVA3D] Getting an objects position Richard Bone
- Re: [JAVA3D] Getting an objects position trz
- Re: [JAVA3D] Getting an objects position Richard Bone
- Re: [JAVA3D] Getting an objects position Nikolai V. Chr.
