InputDataHand.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using UnityEngine;
  7. namespace SC.XR.Unity.Module_InputSystem.InputDeviceHand {
  8. public class InputDataHand: InputDataBase {
  9. public InputDeviceHandPart inputDeviceHandPart;
  10. public InputDataHand(InputDeviceHandPart inputDeviceHandPart) : base(inputDeviceHandPart) {
  11. this.inputDeviceHandPart = inputDeviceHandPart;
  12. }
  13. public class HandsInfo {
  14. /// <summary>
  15. /// 手原始数据
  16. /// </summary>
  17. public float[] originDataMode = new float[256 + 256 + 1024 + 778 * 3 * 4];
  18. public float[] originDataPose = new float[128];
  19. public int handAmount = 0;
  20. /// <summary>
  21. /// 数据里是否存在双手
  22. /// </summary>
  23. public bool handLeftFind = false;
  24. public bool handRightFind = false;
  25. /// <summary>
  26. /// 数据里左右手的index
  27. /// </summary>
  28. public int handLeftIndex = 0;
  29. public int handRighIndex = 0;
  30. /// <summary>
  31. /// 左右手数据存储结构
  32. /// </summary>
  33. public handInfo handLeft;
  34. public handInfo handRight;
  35. }
  36. public bool isFound = false;//是否有数据
  37. public handInfo handInfo;
  38. }
  39. }