Click or drag to resize

TransformUtilsGlobalToLocalVector Method

Converts a global vector of a transform to local vector in its parent's coordinate system. The difference from GlobalToLocalDirection(Transform, Vector3) is that this vector has length.

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

Parameters

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

Return Value

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