Package com.l2client.navigation

Examples of com.l2client.navigation.Cell


  private Entity createEntity(Vector3f pos) {

    Entity e = EntityManager.get().createEntity(id++);
    if (e != null) {
      Cell c = Singleton.get().getNavManager().FindClosestCell(pos, false);
      pc = new PositioningComponent();
      if (c != null) {
        pc.cell = c.getId();
        c.MapVectorHeightToCell(pos);
      }
      pc.position.set(pos);
      pc.heightOffset = 1f;
     
      em.addComponent(e.getId(), pc);
View Full Code Here


  private Entity createEntity(Vector3f pos) {

    Entity e = em.createEntity(id++);
    if (e != null) {
      Cell c = enm.FindClosestCell(pos, false);
      pc = new PositioningComponent();
      if (c != null) {
        pc.cell = c.getId();
        c.MapVectorHeightToCell(pos);
        System.out.println("Entity placed at "+pos);
      } else {
        System.out.println("No cell found near "+pos);
      }
      pc.position.set(pos);
View Full Code Here

  private Entity createEntity(Vector3f pos) {

    Entity e = em.createEntity(id++);
    if (e != null) {
      Cell c = enm.FindClosestCell(pos, false);
      pc = new PositioningComponent();
      if (c != null) {
        pc.cell = c.getId();
        c.MapVectorHeightToCell(pos);
      }
      pc.position.set(pos);
      pc.heightOffset = 1f;
     
      em.addComponent(e.getId(), pc);
View Full Code Here

TOP

Related Classes of com.l2client.navigation.Cell

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.