TransformExt.GetWorldRotation Method

Transforms a rotation to world space. If transform is null, localRotation will be returned.

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

Syntax

C#

public static Quaternion GetWorldRotation(
	Transform transform,
	Quaternion localRotation
)

Parameters

 

transform
Type: Transform
Transform with the space of the local rotation
localRotation
Type: Quaternion
Local rotation

Return Value

Type: Quaternion
Rotation in world space or localRotation if transform is null

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace