TrackResult.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace Ximmerse.XR
  5. {
  6. /// <summary>
  7. /// Track result descriptor.
  8. /// </summary>
  9. public struct TrackingResult
  10. {
  11. /// <summary>
  12. /// id
  13. /// </summary>
  14. public int id;
  15. /// <summary>
  16. /// size of tracked marker.
  17. /// </summary>
  18. public float size;
  19. /// <summary>
  20. /// true for controller, cube, false for single card.
  21. /// </summary>
  22. public bool isGroup;
  23. /// <summary>
  24. /// tracked or not tracked.
  25. /// </summary>
  26. public bool tracked;
  27. /// <summary>
  28. /// Pose at world space
  29. /// </summary>
  30. public Pose worldPose;
  31. /// <summary>
  32. /// Tracked distance, valid when tracked is true.
  33. /// </summary>
  34. public float trackedDistance;
  35. /// <summary>
  36. /// Tracked confidence, range [0..1]
  37. /// </summary>
  38. public float trackedConfidence;
  39. }
  40. }