Package com.l2client.navigation.Path

Examples of com.l2client.navigation.Path.WayPoint


 
 
  public void initByWayPoint(Path p){
    ArrayList<WayPoint> wpl = p.WaypointList();
    WayPoint wp = wpl.get(0);
    path = p;
    mesh = wp.mesh;
    cell = wp.cell;
    position.set(wp.position);
    if(wpl.size()>1){
View Full Code Here


  }

  public void ResolveMotionOnMesh(PositioningComponent comp, Vector3f endPos) {
    if((getNavMesh(comp.mesh)).isBorderCell(comp.cell)) {
      if(comp.position.distanceSquared(endPos) < 0.000001f){
        WayPoint c = null;
       
        ArrayList<WayPoint> arr = comp.path.WaypointList();
       
        for(WayPoint p : arr){
          //one after current
View Full Code Here

       
      com.position.set(endPos);

     
      //reached the waypoint, is it the last? stop, otherwise go to next one
      WayPoint last = com.path.WaypointList().get(com.path.WaypointList().size()-1);
      if(com.cell == last.cell){
        float dist = endPos.distanceSquared(last.position);
        if(dist < 0.000001f){
          com.position.set(last.position);
          signalStopToEnv(com);
View Full Code Here

TOP

Related Classes of com.l2client.navigation.Path.WayPoint

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.