Package com.jme3.math

Examples of com.jme3.math.Vector3f.distanceSquared()


          for(Vector3f point : c.m_WallMidpoint){
            //not needed, as this will not work, midpoints will be always on the line
//            //to find the one on the border
//            if(!isPointInTile(point.x, point.z)){
              //and which is closer than the ones before the current
              dist = cross.distanceSquared(point.x, point.z);
              if(dist<max){
                max = dist;
                targetCell = c;
                goal = point;
              }
View Full Code Here


     
      //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);
          haltPosComponent(com);
          com.path = null;
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.