hi been trying to get some answers for ages now
and im hoping some one here can help me

im writing a 3d first person game using java3d.

i need to know how to attach an object to the camera
the camera position is moved with a keyboard behaviour.

also i have a problem with the rotationInterpolator class...
i have an object that rotates but when i try to move the object into position
it dosent move unless the position specified is outside the behaviour bounds..
any help would be great!!

below is the code im playing with at the mo....

////// code used to rotate an object
///// but how do i move the object into position in the universe??

filename = "c:\\windows\\desktop\\3d\\models\\face.ms3d";

java.io.File file1 = new java.io.File(filename);
if (file1.getParent().length() > 0) // figure out the base path
loader.setBasePath(file1.getParent() + java.io.File.separator);
Scene object2 = loader.load(file1.getName());

Transform3D rotateCube = new Transform3D();
TransformGroup rotationGroup = new TransformGroup(rotateCube);

Alpha rotationAlpha = new Alpha(-1,Alpha.INCREASING_ENABLE,0,0,4000,0,0,0,0,0);
Transform3D yAxis = new Transform3D();

RotationInterpolator rotator = new RotationInterpolator(rotationAlpha,rotationGroup,yAxis,0.0f,(float)Math.PI
* 2.0f);

BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0),100.0);

BranchGroup obj2 = new BranchGroup();

/////////// how can i attach an object to the camera
////////// so that the object moves with it
///////// for example if i wanted to have a gun model move
///////// with the player

private BranchGroup setupCamera() throws Exception
BranchGroup scene = new BranchGroup();

//Set user interaction////////////
KeyNavigatorBehavior navigator = new KeyNavigatorBehavior(u.getViewingPlatform().getViewPlatformTransform());
navigator.setSchedulingBounds(new BoundingSphere(new Point3d(), 10000.0));

//Set camera position/////////////
TransformGroup vtg = u.getViewingPlatform().getViewPlatformTransform();
Transform3D moveUp = new Transform3D();
moveUp.setTranslation(new Vector3f(0.0f, 10.0f, 0.0f));

return scene;