Created
May 6, 2017 14:23
-
-
Save JotaroS/6833584a7e76784b32ee037278287f17 to your computer and use it in GitHub Desktop.
smooth tracking.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// attaching this code is more stable than OVRCameraRig/L,RHandAnchor. | |
using UnityEngine; | |
using System.Collections; | |
public class Touch : MonoBehaviour { | |
public OVRInput.Controller controller; | |
// Update is called once per frame | |
void Update () { | |
this.transform.position = OVRInput.GetLocalControllerPosition (controller); | |
this.transform.rotation = OVRInput.GetLocalControllerRotation (controller); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment