TransformExt.GetWorldDirection Method

Transforms a direction to world space. If transform is null, localDirection will be returned.

Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Vector3 GetWorldDirection(
	Transform transform,
	Vector3 localDirection
)

Parameters

 

transform
Type: Transform
Transform with the space of the local direction
localDirection
Type: Vector3
Direction

Return Value

Type: Vector3
Rotation in world space or localDirection if transform is null

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace