Version: 2019.2
public Vector3 TransformVector (Vector3 vector);

Description

Transforms vector from local space to world space.

This operation is not affected by position of the transform, but it is affected by scale. The returned vector may have a different length than vector.


public Vector3 TransformVector (float x, float y, float z);

Description

Преобразует позицию по x, y, z из глобальной в локальную систему координат. Противоположно Transform.TransformPoint.

This operation is not affected by position of the transform, but is is affected by scale. The returned vector may have a different length than vector.