void OnDrawGizmos()
    {
        Quaternion fromQ = Quaternion.Euler(fromAsEulerAngles);
        Quaternion toQ   = Quaternion.Euler(toAsEulerAngles);

        GizmosForQuaternion.RotateTowards(Vector3.zero, fromQ, toQ, BaseVectorDirection.right, 6);
    }
    void OnDrawGizmos()
    {
        Quaternion fromQ;

        fromQ = transform.rotation;
        Quaternion toQ = Quaternion.Euler(to);

        GizmosForQuaternion.RotateTowards(Vector3.zero, fromQ, toQ, BaseVectorDirection.right, 6);
    }
Пример #3
0
    void OnDrawGizmos()
    {
        Quaternion fromQ = Quaternion.Euler(from);
        Quaternion toQ   = Quaternion.Euler(to);

        if (useBuiltinDirection)
        {
            GizmosForQuaternion.RotateTowards(origin, fromQ, toQ, builtinDirection, 6);
        }
        else
        {
            GizmosForQuaternion.RotateTowards(origin, fromQ, toQ, customDirectionn);
        }
    }