ViveDebugData.cs 541 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using TMPro;
  4. using UnityEngine;
  5. public class ViveDebugData : MonoBehaviour
  6. {
  7. public FrontWheelTracker tracker;
  8. public TextMeshProUGUI posText;
  9. public TextMeshProUGUI rotText;
  10. // Start is called before the first frame update
  11. void Start()
  12. {
  13. }
  14. // Update is called once per frame
  15. void Update()
  16. {
  17. posText.text = $"Pos: {tracker.Position.ToString()}";
  18. rotText.text = $"Rot: {tracker.Rotation.ToString()}";
  19. }
  20. }