Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

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;

Parameters

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;

Parameters

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.