Package com.l2client.model.jme

Examples of com.l2client.model.jme.NewCharacterModel


            clientInfo.getCharHandler().setSelected(i);
            camera.lookAt(scene.getChild("pos"+(i+1)).getLocalTranslation(), Vector3f.UNIT_Y);
            CameraNode cn;
           
          }
          NewCharacterModel v = new NewCharacterModel(clientInfo.getCharHandler().getCharSummary(i));
          v.attachVisuals();
          pos = scene.getChild("pos"+(i+1)).getLocalTranslation().clone();
          pos.y -= 1.0f;
          v.setLocalTranslation(pos);
          v.setLocalRotation(new Quaternion().fromAngleNormalAxis((float) Math.PI, Vector3f.UNIT_Y.negate()));
          Singleton.get().getSceneManager().changeCharNode(v,Action.ADD);
        }       
      }
    } catch (Exception e1) {
      logger.log(Level.SEVERE, "Failed to load select scene file "+SCENES_SELECT, e1);
View Full Code Here


  //FIXME move input creation out to a seperate task so it can be performed early, and thus enable the dependent code (like ActionManager) to initialize earlier
  public void onEnterWorld(final PlayerCharHandler pcHandler,
      Camera cam) {

    data = pcHandler.getSelectedChar();
    visible = pcHandler.createPCComponents(data, new NewCharacterModel(pcHandler.getSelectedSummary()));
    logger.fine("Character initialized to:" + visible.getLocalTranslation());

    setupChaseCamera(visible, cam);
   
        AmbientLight al = new AmbientLight();
View Full Code Here

TOP

Related Classes of com.l2client.model.jme.NewCharacterModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.