title: replacement for InputTracking.GetLocalPosition in unity
body: <p>when using </p>
  
  <p><code>OVRPose headPose;
  headPose.position = InputTracking.GetLocalPosition(Node.Head);</code></p>
  
  <p>in a function, I get the following warning warning</p>
  
  <p>Warning CS0618  'InputTracking.GetLocalPosition(XRNode)' is obsolete: 'This API has been marked as obsolete in code, and is no longer in use. Please use InputTracking.GetNodeStates and look for the XRNodeState with the corresponding XRNode type instead.'  Oculus.VR   E:\unityProjectsLocal\Voolkan VR\Assets\Oculus\VR\Scripts\OVRInput.cs   460 Active</p>
  
  <p>the script is long so i'll focus the question in those few lines</p>
  
  <pre><code>using Node = UnityEngine.XR.XRNode;
  using NodeState = UnityEngine.XR.XRNodeState;
  ....
  public static OVRPose ToTrackingSpacePose(this Transform transform, Camera camera)
  {
      OVRPose headPose;
  
      headPose.position = InputTracking.GetLocalPosition(Node.Head);
      headPose.orientation = InputTracking.GetLocalRotation(Node.Head);
  
      var ret = headPose * transform.ToHeadSpacePose(camera);
  
      return ret;
  }
  </code></pre>
  
  <p>how can I use the <code>InputTracking.GetNodeStates</code> to replace it?
  how can i get from <code>List&lt;NodeState&gt; nodes;
          InputTracking.GetNodeStates(nodes);</code> to <code>Node.Head</code>?</p>