Examples of attachVisuals()


Examples of com.l2client.model.jme.ItemModel.attachVisuals()

        item.worldPosition =   ServerValues.getClientCoords(x, y, z);
        item.stackable = stackable;
        item.count = count;
       
        ItemModel i = new ItemModel(item);
        i.attachVisuals();
        Singleton.get().getNavManager().snapToGround(item.worldPosition);
        ent.setLocalTranslation(item.worldPosition);
        ent.setName(i.getName());
        ent.attachChild(i);
       
View Full Code Here

Examples of com.l2client.model.jme.NPCModel.attachVisuals()

      //TODO could use getTemplates to switch through models..
      NewCharSummary sum = new NewCharSummary();
      sum.name = "DwarfWarriorM";
      NPCModel m = new NPCModel(sum);
      //Node n = Assembler2.getModel3("dwarfwarrior"); //"pelffwarrior");//humanhalberd"); //goblin");
      m.attachVisuals();
//      if(n != null){ 
        ent = em.createEntity(_1000);
       
        Node nn = new Node("intermed");
        nn.attachChild(m);
View Full Code Here

Examples of com.l2client.model.jme.NPCModel.attachVisuals()

        n.objectId = e.getObjectId();
        // TODO char inventory for model equip
        n.race = e.getRace();
       
        NPCModel v = new NPCModel(n);
        v.attachVisuals();
        vis.vis = v;
        addEntityIdToGeoms(e.getObjectId(), v);
        ent.setName(v.getName());
        ent.attachChild(v);
       
View Full Code Here

Examples of com.l2client.model.jme.NewCharacterModel.attachVisuals()

            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);
View Full Code Here

Examples of com.l2client.model.jme.VisibleModel.attachVisuals()

        rootNode.addLight(dr);
      NewCharSummary c = new NewCharSummary();
      c.name = "Myname";
      VisibleModel v = new VisibleModel(c);
      rootNode.attachChild(v);
      v.attachVisuals();
      v.rotateUpTo(Vector3f.UNIT_Z.mult(-1f));
     
      printHierarchy(rootNode, "");
    }
View Full Code Here

Examples of com.l2client.model.jme.VisibleModel.attachVisuals()

      //so relaping it here
      Spatial troll = n.getChild("troll")
      if(troll != null){
        n.detachChild(troll);
        VisibleModel newtroll = new VisibleModel(null);
        newtroll.attachVisuals();
        newtroll.setLocalTranslation(troll.getLocalTranslation());
        n.attachChild(newtroll);
      }
      //this is needed as the chars are on a different node and would not be rendered
      //just add, do not remove here..
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.