Click or drag to resize

QuaternionExtensionsFromWebToUnity Method

Transforms a rotation from right-handed z-toward (WebGL) to left-handed z-away (Unity) coordinate system.

Namespace:  ImmerseSDK.Extensions
Assembly:  ImmerseSDK.App (in ImmerseSDK.App.dll) Version: 3.9.0.0 (3.9.0.0)
Syntax
C#
public static UnityEngine.Quaternion FromWebToUnity(
	this UnityEngine.Quaternion rotation
)

Parameters

rotation
Type: UnityEngine.Quaternion
The original rotation that was created in WebGL.

Return Value

Type: UnityEngine.Quaternion
A new rotation suitable for use in Unity.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UnityEngine.Quaternion. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also