123456789101112131415161718192021222324 |
- using UnityEngine;
- using Valve.VR;
- namespace Tracking
- {
- public class KineticLegTracker : CalibratableTracker, IViveTracker
- {
- public bool calibrateOnStart = true;
- public string id;
- public string Id => id;
- public SteamVR_TrackedObject TrackedObject => GetComponent<SteamVR_TrackedObject>();
- public float BatteryLevel { get; set; }
- protected override string KeyPrefix => "kl";
-
- protected override void Start()
- {
- base.Start();
- if (calibrateOnStart)
- {
- Calibrate();
- }
- }
- }
- }
|