KineticLegTracker.cs 627 B

123456789101112131415161718192021222324
  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. public float BatteryLevel { get; set; }
  12. protected override string KeyPrefix => "kl";
  13. protected override void Start()
  14. {
  15. base.Start();
  16. if (calibrateOnStart)
  17. {
  18. Calibrate();
  19. }
  20. }
  21. }
  22. }