public void recalculatePath(){
  if (targetVector != null) {
    deltaPathX=targetVector.xPos - startPos.xPos;
    deltaPathY=targetVector.yPos - startPos.yPos;
    deltaPathZ=targetVector.zPos - startPos.zPos;
    flatDistance=Vector2.distance(new Vector2(startPos),new Vector2(targetVector));
    maxHeight=160 + (int)(flatDistance * 3);
    missileFlightTime=(float)Math.max(100,2 * flatDistance) - airborneTicks;
    acceleration=(float)maxHeight * 2 / (missileFlightTime * missileFlightTime);
  }
}

public void recalculatePath ( ) { if ( targetVector != null ) { deltaPathX = targetVector . xPos - startPos . xPos ; deltaPathY = targetVector . yPos - startPos . yPos ; deltaPathZ = targetVector . zPos - startPos . zPos ; flatDistance = Vector2 . distance ( new Vector2 ( startPos ) , new Vector2 ( targetVector ) ) ; maxHeight = 160 + ( int ) ( flatDistance * 3 ) ; missileFlightTime = ( float ) Math . max ( 100 , 2 * flatDistance ) - airborneTicks ; acceleration = ( float ) maxHeight * 2 / ( missileFlightTime * missileFlightTime ) ; } }
recalculates required parabolic path for the missile registry
