Package com.l2client.component

Examples of com.l2client.component.PositioningComponent


    Vector3f tPos = ServerValues.getClientCoords(x, y, z);
System.out.println("VALIDATE:"+objId+" at:("+x+","+y+","+z+") -> "+tPos);
    float heading = ServerValues.getClientHeading(readD());
    log.fine("Coords:"+tPos.x+","+tPos.y+","+tPos.z+" for "+objId);

    PositioningComponent pos = (PositioningComponent) Singleton.get().getEntityManager().getComponent(objId, PositioningComponent.class);
    if (pos != null){
      //TODO check heading is really of any relevance
      if(FastMath.abs(heading-pos.heading)> FastMath.PI/180f*5f)//difference by more than 5 degrees
        log.severe(objId+" heads differ by more than 5 deg cHeading:"+pos.heading+" tHeading:"+heading);
     
View Full Code Here


//            last = cur;
//            cur = pa.GetFurthestVisibleWayPoint(cur);
//          }
         
          PositioningSystem mover = Singleton.get().getPosSystem();
          PositioningComponent com = new PositioningComponent();
          com.initByWayPoint(pa);
          com.acc =0f;
          com.direction = Vector3f.ZERO;
          com.heading = 0f;
          com.maxAcc = 2f;
          com.maxDcc = 3f;
View Full Code Here

TOP

Related Classes of com.l2client.component.PositioningComponent

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.