Package soc.qase.tools.vecmath

Examples of soc.qase.tools.vecmath.Vector3f


    outputFraction = 0.0f;

    outputAllSolid = false;
    outputStartsOut = false;

    outputEnd = new Vector3f(0, 0, 0);
    inputStart = new Vector3f(0, 0, 0);
    inputEnd = new Vector3f(0, 0, 0);

    traceMins = null;
    traceMaxs = null;
    traceExtents = new Vector3f(0, 0, 0);
  }
View Full Code Here


  protected void processLumpData()
  {
    vertices = new Vector3f[lumpData.length / 12];

    for(int i = 0; i < vertices.length; i++)
      vertices[i] = new Vector3f(Utils.floatValue(lumpData, i * 12), Utils.floatValue(lumpData, i * 12 + 4), Utils.floatValue(lumpData, i * 12 + 8));
  }
View Full Code Here

@return true if the WaypointMap is unlocked and the node was
*  successfully added, false otherwise */
/*-------------------------------------------------------------------*/
  public boolean addNode(Origin node)
  {
    return addNode(new Vector3f(node));
  }
View Full Code Here

@param location the location from which to measure waypoint distances
@return the Waypoint closest to the given position */
/*-------------------------------------------------------------------*/
  public Waypoint findClosestWaypoint(Origin location)
  {
    return findClosestWaypoint(new Vector3f(location));
  }
View Full Code Here

@param modelData byte array containing model lump data
@param offset location of the model in the byte array */
/*-------------------------------------------------------------------*/
  public BSPModel(byte[] modelData, int offset)
  {
    bboxMin = new Vector3f(Utils.floatValue(modelData, offset), Utils.floatValue(modelData, offset + 4), Utils.floatValue(modelData, offset + 8));
    bboxMax = new Vector3f(Utils.floatValue(modelData, offset + 12), Utils.floatValue(modelData, offset + 16), Utils.floatValue(modelData, offset + 20));
    origin = new Vector3f(Utils.floatValue(modelData, offset + 24), Utils.floatValue(modelData, offset + 28), Utils.floatValue(modelData, offset + 32));
    headNode = Utils.unsignedIntValue(modelData, offset + 36);
    firstFace = Utils.unsignedIntValue(modelData, offset + 40);
    numFaces = Utils.unsignedIntValue(modelData, offset + 44);
  }
View Full Code Here

    Vector isAlive = new Vector();
    Vector playerPos = new Vector();
    Vector waypointItems = new Vector();
    Vector pickupPos = new Vector();

    Vector3f currentPos = null, lastPos = null, itemPos = null;

    while((world = dm2p.getNextWorld()) != null)
    {
      currentPos = new Vector3f(world.getPlayer().getPlayerMove().getOrigin());

      if(lastPos == null || !currentPos.equals(lastPos))
      {
        playerPos.add(currentPos);
        isAlive.add(new Boolean(world.getPlayer().isAlive()));

        if(world.getPickupEntityIndex() != -1 && !duplicateItemNode(pickupPos, (itemPos = new Vector3f(world.getPickupEntity().getOrigin()))))
        {
          pickupPos.add(itemPos);
          waypointItems.add(world.getPickupEntity());
        }
      }
View Full Code Here

    children = new int[2];

    plane = Utils.unsignedIntValue(nodeData, offset);
    children[0] = frontChild = Utils.intValue(nodeData, offset + 4);
    children[1] = backChild = Utils.intValue(nodeData, offset + 8);
    bboxMin = new Vector3f(Utils.shortValue(nodeData, offset + 12), Utils.shortValue(nodeData, offset + 14), Utils.shortValue(nodeData, offset + 16));
    bboxMax = new Vector3f(Utils.shortValue(nodeData, offset + 18), Utils.shortValue(nodeData, offset + 20), Utils.shortValue(nodeData, offset + 22));
    firstFace = Utils.unsignedShortValue(nodeData, offset + 24);
    numFaces = Utils.unsignedShortValue(nodeData, offset + 26);
  }
View Full Code Here

@param planeData byte array containing plane lump data
@param offset location of the plane in the byte array */
/*-------------------------------------------------------------------*/
  public BSPPlane(byte[] planeData, int offset)
  {
    normal = new Vector3f(Utils.floatValue(planeData, offset), Utils.floatValue(planeData, offset + 4), Utils.floatValue(planeData, offset + 8));
    distance = Utils.floatValue(planeData, offset + 12);
    type = Utils.unsignedIntValue(planeData, offset + 16);
  }
View Full Code Here

*  supplied.
@param location an Origin object indicating the position of this node */
/*-------------------------------------------------------------------*/
  public Waypoint(Origin location)
  {
    pos = new Vector3f(location);
  }
View Full Code Here

*  supplied.
@param location a Vector3f object indicating the position of this node */
/*-------------------------------------------------------------------*/
  public Waypoint(Vector3f location)
  {
    pos = new Vector3f(location);
  }
View Full Code Here

TOP

Related Classes of soc.qase.tools.vecmath.Vector3f

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.