Get Head Position
public Vector3 GetHeadPosition()
Return type
| Datatype | Description |
|---|---|
| Vector3 | Position of head in world coordinate |
This method returns the updated head position in world coordinate.
info
If you want to get the updated position then this function must be used in Update()
using JMRSDK;
using UnityEngine;
public class PositionRotationExample: MonoBehaviour
{
public void Update()
{
//Getting the updated Head position by calling the GetHeadPosition()
Vector3 position = JMRTrackerManager.Instance.GetHeadPosition();
}
}