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 public static Vector3 GlobalToLocalDirection(
Transform transform,
Vector3 global
)
Parameters
- transform
- Type: Transform
The transform. - global
- Type: Vector3
The global direction.
Return Value
Type:
Vector3Local direction in transform parent's coordinate system.
See Also