void OnDrawGizmos()
    {
        Quaternion startQ = Quaternion.Euler(start);
        Quaternion endQ   = Quaternion.Euler(end);


        GizmosForQuaternion.SlerpUnclamped(Vector3.zero, startQ, endQ, t, BaseVectorDirection.right, 6f);
    }
Example #2
0
    void OnDrawGizmos()
    {
        Quaternion startQ = Quaternion.Euler(startRotation);
        Quaternion endQ   = Quaternion.Euler(endRotation);


        GizmosForQuaternion.LerpUnclamped(Vector3.zero, startQ, endQ, t, BaseVectorDirection.right, 6f);
        GizmosForQuaternion.SlerpUnclamped(Vector3.zero, startQ, endQ, t, BaseVectorDirection.right, 9f);

        //  GizmosForQuaternion.DrawQuaternion(origin, Quaternion.Lerp(startQ, endQ, t),Color.green);
    }
    void OnDrawGizmos()
    {
        Quaternion startQ = Quaternion.Euler(start);
        Quaternion endQ   = Quaternion.Euler(end);

        if (useBuiltinDirection)
        {
            GizmosForQuaternion.SlerpUnclamped(origin, startQ, endQ, howFuther, builtinDirection, 6f);
        }
        else
        {
            GizmosForQuaternion.SlerpUnclamped(origin, startQ, endQ, howFuther, customDirectionn, 6f);
        }
    }