Change the mousse effects

Hello,



in my little JOGL engine, the mousse move the scene orientation and not the camera orientation.



This the source code of my class TrackBall which is call in the function display and improve the translation and rotation of the scene.


public classe TrackBall {
...
public static void display(GLAutoDrawable drawable)
   {
   GL gl = drawable.getGL() ;
   GLU glu = new GLU() ;
   
   glu.gluLookAt(0.0, 0.0, Scene.getDistance(), 0.0, 0.0, 0.0, 0.0, 1.0, 0.0) ;
   
   gl.glTranslated(-Scene.getTranslations().getX(), -Scene.getTranslations().getY(), -Scene.getTranslations().getZ()) ;

   gl.glRotated(-Scene.getAngles().getY(), 1.0, 0.0, 0.0) ; // Les rotations souris
   gl.glRotated(-Scene.getAngles().getX(), 0.0, 1.0, 0.0) ;
   }
...
}



How can I do it with jME ??? <=> I don't want use the mode first person of the class SimpleGame.

Thank you...