@Override
    public void simpleUpdate(float tpf) {

        Vector3f camDirection = cam.getDirection().clone().multLocal(0.6f);
        Vector3f camLeft = cam.getLeft().clone().multLocal(0.4f);
        camDirection.y = 0;
        camLeft.y = 0;
        if (s==20) {
            salud=3;
            
        }
        if (s==40) {
            salud=2;            
        }
        if (s==60) {
            salud=1;
        }
        interfaz.checarVidas();
        
        if (s == 30) {
            score = 20;
            interfaz.textScore.setText("" + score);
        }

        walkDirection.set(0, 0, 0);
        if (izq) {
            walkDirection.addLocal(camLeft);
        }
        if (der) {
            walkDirection.addLocal(camLeft.negate());
        }
        if (arriba) {
            walkDirection.addLocal(camDirection);
        }
        if (abajo) {
            walkDirection.addLocal(camDirection.negate());
        }
        
        personajeRigidBody.setViewDirection(walkDirection);

        personajeRigidBody.setWalkDirection(walkDirection);
        listener.setLocation(personajeRigidBody.getPhysicsLocation());
        listener.setRotation(cam.getRotation()); 
    }