Package soc.qase.tools.vecmath

Examples of soc.qase.tools.vecmath.Vector3f.sub()


        isNoClip = true;
      }
      else
      {
        Vector3f pos = new Vector3f(world.getPlayer().getPlayerMove().getOrigin());
        pos.sub(initPos, pos);

        if(pos.length() < 2)
        {
          pacify();
          initPosReached = true;
View Full Code Here


    if(!mapRead)
      return Float.NaN;

    Vector3f end = getObstacleLocation(start, dir, maxDist);

    end.sub(start);
    return end.length();
  }

/*-------------------------------------------------------------------*/
/**  Projects a sphere through the game world in a given direction from a
View Full Code Here

    if(!mapRead)
      return Float.NaN;

    Vector3f end = getObstacleLocation(start, dir, sphereRadius, maxDist);

    end.sub(start);
    return end.length();
  }

/*-------------------------------------------------------------------*/
/**  Projects a bounding box through the game world in a given direction
View Full Code Here

    if(!mapRead)
      return Float.NaN;

    Vector3f end = getObstacleLocation(start, dir, boundingBoxMins, boundingBoxMaxs, maxDist);

    end.sub(start);
    return end.length();
  }

/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
 
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.