materialx.setDiffuse( color );
materialx.setAmbient( color.mult( new ColorRGBA( 1f, 0.1f, 0.1f, 1 ) ) );
axisXArrow=new Arrow("ax",0.1f,0.01f);
axisXArrow.setLocalTranslation(new Vector3f(0.05f,0,0));
axisXArrow.rotateUpTo(new Vector3f(1,0,0));
axisXArrow.setRenderState(materialx);
MaterialState materialy = display.getRenderer().createMaterialState();
materialy.setShininess( 128 );
color = new ColorRGBA( 0f, 1f, 0f, 0.5f );
materialy.setDiffuse( color );
materialy.setAmbient( color.mult( new ColorRGBA( 0.1f, 1f, 0.1f, 0.5f ) ) );
axisYArrow=new Arrow("ay",0.1f,0.01f);
axisYArrow.setLocalTranslation(new Vector3f(0,0.05f,0));
axisYArrow.rotateUpTo(new Vector3f(0,1,0));
axisYArrow.setRenderState(materialy);
MaterialState materialz = display.getRenderer().createMaterialState();
materialz.setShininess( 128 );
color = new ColorRGBA( 0f, 0f, 1f, 0.5f );
materialz.setDiffuse( color );
materialz.setAmbient( color.mult( new ColorRGBA( 0.1f, 0.1f, 1f, 0.5f ) ) );
axisZArrow=new Arrow("az",0.1f,0.01f);
axisZArrow.setLocalTranslation(new Vector3f(0,0,0.05f));
axisZArrow.rotateUpTo(new Vector3f(0,0,1));
axisZArrow.setRenderState(materialz);
camPosBall=new Sphere("cameraPosition",new Vector3f(0,0,0),10,10,0.02f);