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.TransformVector

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

Description

Transforms vector 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.

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

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.