Get Head Transform

How to get Head Transform

public Transform GetHeadTransform()

Return type

DatatypeDescription

Transform

Transform of head

This method returns the updated head transform.

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

using JMRSDK;
using UnityEngine;

public class PositionRotationExample: MonoBehaviour
{
    public void Update()
    {
        //getting the updated head transform by calling GetHeadTransform()
        Transform headTransform = JMRTrackerManager.Instance.GetHeadTransform();
    }
}

Last updated