Get Head Rotation

How to get Head Rotation

public Quaternion GetHeadRotation()

Return type

DatatypeDescription

Quaternion

Rotation of head in world coordinate

This method returns the updated head rotation in world coordinate.

If you want to get the updated rotation then this function must be used in Update()

using JMRSDK;
using UnityEngine;

public class PositionRotationExample: MonoBehaviour
{
    public void Update()
    {
        //getting the updated head rotation by calling GetHeadRotation()
        Quaternion rotation = JMRTrackerManager.Instance.GetHeadRotation();
    }
}