Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Transform.TransformDirection

Switch to Manual
public function TransformDirection(direction: Vector3): Vector3;

Parameters

Description

Transforms direction from local space to world space.

This operation is not affected by scale or position of the transform. The returned vector has the same length as direction.


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

Parameters

Description

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

This operation is not affected by scale or position of the transform. The returned vector has the same length as direction.