MathUtilities.TransformVectorFromTo(Transform, Transform, Vector3) Method

Definition

Takes a vector in the coordinate space specified by the "from" transform and transforms it to be the correct direction in the coordinate space specified by the "to" transform applies rotation and scale, no translation

C++
public:
 static UnityEngine::Vector3 TransformVectorFromTo(UnityEngine::Transform ^ from, UnityEngine::Transform ^ to, UnityEngine::Vector3 vecInFrom);

Parameters

from
UnityEngine.Transform
to
UnityEngine.Transform
vecInFrom
UnityEngine.Vector3

Returns

UnityEngine.Vector3

Applies to

Produkt Versionen
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0