Esempio n. 1
0
    /// <summary>
    /// Calculates arrow head position and draws it
    /// </summary>
    private void ArrowHead()
    {
        Vector3 arrowHeadPos     = Vector3.up * (sinParam * arrowHeadAmplitude + arrowHeadOffset) + new Vector3(0.5f, 0, 0.5f);
        Vector3 currentDirection = Quaternion.AngleAxis(currentAngle, Vector3.up) * Vector3.forward;

        CustomGizmos.DrawArrowTip(arrowHeadPos, Vector3.down, arrowTipSize, currentDirection);
    }