KineticLegTracker.cs 557 B

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