12345678910111213141516171819202122232425262728 |
- using TMPro;
- using Tracking;
- using UnityEngine;
- namespace Display
- {
- public class ViveTrackerDebugDisplay : MonoBehaviour
- {
- public FrontWheelTracker tracker;
- public TextMeshProUGUI posText;
- public TextMeshProUGUI rotText;
- // Start is called before the first frame update
- void Start()
- {
-
- }
- // Update is called once per frame
- void Update()
- {
- posText.text = $"Pos: {tracker.Position.ToString()}";
- rotText.text = $"Rot: {tracker.Rotation.ToString()}";
- }
- }
- }
|