예제 #1
0
    public Vector3 GetPredictedEndPositionAtEndOfJump(float currentTime)
    {
        Vector3     predictedEndPosition;
        MovingPlane movingPlane = end.GetComponent <MovingPlane>();

        if (movingPlane != null)
        {
            predictedEndPosition = movingPlane.GetPosition(currentTime + timeToTraverseLink);
        }
        else
        {
            predictedEndPosition = end.transform.position;
        }

        return(predictedEndPosition);
    }
예제 #2
0
 private void updateMovingPlane(MovingPlane m)
 {
     movingPlane = m;
 }