Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Transform.InverseTransformVector

Switch to Manual
public function InverseTransformVector(vector: Vector3): Vector3;

Description

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

This operation is affected by scale.

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

Description

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

This operation is affected by scale.