Click or drag to resize

TransformUtilsGlobalToLocalDirection Method

Converts a global direction of a transform to local direction in its parent's coordinate system.

Namespace:  TouchScript.Utils
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static Vector3 GlobalToLocalDirection(
	Transform transform,
	Vector3 global
)

Parameters

transform
Type: Transform
The transform.
global
Type: Vector3
The global direction.

Return Value

Type: Vector3
Local direction in transform parent's coordinate system.
See Also