This version of Unity is unsupported.

Transform.InverseTransformVector

Switch to Manual

Declaration

public Vector3 InverseTransformVector(Vector3 vector);

Description

Transforms a vector from world space to local space. The opposite of Transform.TransformVector.

This operation is affected by scale.


Declaration

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

Description

Transforms the vector x, y, z from world space to local space. The opposite of Transform.TransformVector.

This operation is affected by scale.