Editar

Partilhar via


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

public:
 static UnityEngine::Vector3 TransformVectorFromTo(UnityEngine::Transform ^ from, UnityEngine::Transform ^ to, UnityEngine::Vector3 vecInFrom);
public static UnityEngine.Vector3 TransformVectorFromTo (UnityEngine.Transform from, UnityEngine.Transform to, UnityEngine.Vector3 vecInFrom);
static member TransformVectorFromTo : UnityEngine.Transform * UnityEngine.Transform * UnityEngine.Vector3 -> UnityEngine.Vector3
Public Shared Function TransformVectorFromTo (from As Transform, to As Transform, vecInFrom As Vector3) As Vector3

Parameters

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

Returns

UnityEngine.Vector3

Applies to