KineticLegTracker.cs 579 B

1234567891011121314151617181920212223
  1. using UnityEngine;
  2. using Valve.VR;
  3. namespace Tracking
  4. {
  5. public class KineticLegTracker : CalibratableTracker, IViveTracker
  6. {
  7. public bool calibrateOnStart = true;
  8. public string id;
  9. public string Id => id;
  10. public SteamVR_TrackedObject TrackedObject => GetComponent<SteamVR_TrackedObject>();
  11. protected override string KeyPrefix => "kl";
  12. protected override void Start()
  13. {
  14. base.Start();
  15. if (calibrateOnStart)
  16. {
  17. Calibrate();
  18. }
  19. }
  20. }
  21. }