[SOLVED]A CameraNode for jME3 exemple please O.O

I have to use a CameraNode to attach things to it, and here is my code that init the CameraNode:

[java] public void initCam() {

flyCam.setEnabled(false);

chaseCam = new ChaseCamera(cam, objeto, inputManager);

chaseCam.setDefaultDistance(5f);

chaseCam.setInvertVerticalAxis(true);

chaseCam.setSmoothMotion(true);

chaseCam.setToggleRotationTrigger(new MouseButtonTrigger(mouseInput.BUTTON_LEFT),

new KeyTrigger(KeyInput.KEY_SPACE));

chaseCam.setMinVerticalRotation(-FastMath.PI / 2);

chaseCam.setMaxDistance(7f);

chaseCam.setMinDistance(2.5f);

chaseCam.setDefaultVerticalRotation(-0.076f);

chaseCam.setDragToRotate(true);



camNode = new CameraNode(“Camera node”, cam);

rootNode.attachChild(camNode);

}[/java]



Anyone can giveme a right exemple or say what is wrong? 8O

My camNode just move infinitely to behind of the cam.



I am in this problem about one week and didn’t found no one exemple of CameraNode for jME3. I think this can be usefull for a lot of people.



Thanks for any help.

thanks nehon