BaseSimpleApplet extended class does not calls simpleUpdate()

Hi guys, I’m learning about JME applets. Well, I have a class that extends the BaseSimpleApplet (a little modification of this tutorial) but for some reason, the simpleUpdate method is not being called, and looks like the applet freezes after the simpleInitGame method… I can’t figure out why it’s happening :frowning:



[java]public class AppletTestBoxColor extends BaseSimpleApplet {



private TriMesh t;

private Quaternion rotQuat;

private float angle = 0;

private Vector3f axis;





@Override

protected void simpleInitGame() {



try {

Display.setParent(displayParent);

} catch (LWJGLException ex) {

ex.printStackTrace();

}





lightState.setEnabled(false);

rotQuat = new Quaternion();



axis = new Vector3f(1, 1, 0.5f).normalizeLocal();



Vector3f max = new Vector3f(5, 5, 5);

Vector3f min = new Vector3f(-5, -5, -5);



t = new Box(“Box”, min, max);

t.setModelBound(new BoundingBox());

t.updateModelBound();

t.setLocalTranslation(new Vector3f(0, 0, -15));

rootNode.attachChild(t);



t.setRandomColors();



TextureState ts = display.getRenderer().createTextureState();

ts.setEnabled(true);

ts.setTexture(TextureManager.loadTexture(

TestBoxColor.class.getClassLoader().getResource(

“Monkey.png”), Texture.MinificationFilter.Trilinear,

Texture.MagnificationFilter.Bilinear));



rootNode.setRenderState(ts);

System.out.println(“This IS being printed”);

}



@Override

protected void simpleUpdate() {

System.out.println(“But this IS NOT being printed”);

if (tpf < 1) {

angle = angle + (tpf * 25);

if (angle > 360) {

angle -= 360;

}

}



rotQuat.fromAngleNormalAxis(angle * FastMath.DEG_TO_RAD, axis);

t.setLocalRotation(rotQuat);

}

}

[/java]