This version of Unity is unsupported.

Transform.TransformVector

Switch to Manual

Declaration

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.


Declaration

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

Description

Transforms vector x, y, z from local space to world space.

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.