question: 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 ) ; } }
target:  Recalculates required parabolic path for the missile Registry 