InputDeviceGGT26Dof.cs 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. using AOT;
  2. using SC.XR.Unity.Module_InputSystem.InputDeviceGC;
  3. using System;
  4. using System.Collections;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Runtime.InteropServices;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using UnityEngine;
  11. namespace SC.XR.Unity.Module_InputSystem.InputDeviceHand.GGT26Dof {
  12. public class InputDeviceGGT26Dof : InputDeviceHand {
  13. public override InputDeviceType inputDeviceType {
  14. get {
  15. return InputDeviceType.GGT26Dof;
  16. }
  17. }
  18. [HideInInspector]
  19. public float LowPowerPercent = 15;
  20. private Coroutine lowPowerCoroutine=null;
  21. protected delegate void LowPowerWarningDelegate(int power);
  22. [DllImport("svrplugin")]
  23. protected static extern void ScHANDTRACK_Start(LowPowerWarningDelegate func);
  24. [DllImport("svrplugin")]
  25. public static extern void ScHANDTRACK_Stop();
  26. [DllImport("svrplugin")]
  27. private static extern void ScHANDTRACK_SetGestureCallback(GestureChangeDelegate func);
  28. [DllImport("svrplugin")]
  29. private static extern int ScHANDTRACK_GetGesture(float[] model, float[] pose);
  30. [DllImport("svrplugin")]
  31. private static extern int ScHANDTRACK_SetGestureData(float[] model, float[] pose);
  32. [DllImport("svrplugin")]
  33. private static extern int ScHANDTRACK_GetGestureWithIdx(ref UInt64 index, float[] model, float[] pose);
  34. internal delegate void GestureModelDataChangeDelegate();
  35. [DllImport("svrplugin")]
  36. private static extern int ScHANDTRACK_SetGestureModelDataCallback(GestureModelDataChangeDelegate func);
  37. bool isHandTrackStart = false;
  38. [MonoPInvokeCallback(typeof(GestureModelDataChangeDelegate))]
  39. public static void GestureModelDataChangeCallback()
  40. {
  41. //Debug.Log("[04]GestureModelDataChangeCallback start");
  42. //InputDeviceGGT26DofPart inputDeviceGGT26DofPart = (inputDevicePartList[0] as InputDeviceGGT26DofPart);
  43. //if (inputDeviceGGT26DofPart != null) {
  44. // inputDeviceGGT26DofPart.inputDataGetGGT26Dof.inputDataGetHandsData.OnUpdateInputDataAndStore();
  45. //}
  46. }
  47. public override void OnSCAwake() {
  48. base.OnSCAwake();
  49. AndroidPermission.getInstant.GetPermission(false, true, true);
  50. }
  51. protected override void InputDeviceStart() {
  52. if (DeviceInfo.BatteryLevel < LowPowerPercent) {
  53. if (lowPowerCoroutine == null) {
  54. lowPowerCoroutine = StartCoroutine(LowPowerFunction());
  55. }
  56. return;
  57. }
  58. base.InputDeviceStart();
  59. }
  60. public override void OnSCUpdate() {
  61. base.OnSCUpdate();
  62. if (Application.platform != RuntimePlatform.Android) {
  63. HANDTRACK_GetHand_PC(out InputDataGGT26Dof.handsInfo.originDataMode, out InputDataGGT26Dof.handsInfo.originDataPose);
  64. }
  65. }
  66. public override void OnSCLateUpdate() {
  67. base.OnSCLateUpdate();
  68. if(lowPowerTrigger) {
  69. lowPowerTrigger = false;
  70. if (lowPowerCoroutine == null) {
  71. lowPowerCoroutine = StartCoroutine(LowPowerFunction());
  72. }
  73. }
  74. }
  75. IEnumerator LowPowerFunction(float loopTime = 3) {
  76. while (loopTime -- >0) {
  77. if (inputDeviceUI as InputDeviceHandUI) {
  78. (inputDeviceUI as InputDeviceHandUI).SetActiveUI(HandUIType.LOWPOWER, true);
  79. }
  80. SetActiveInputDevicePart(InputDevicePartType.HandLeft, false);
  81. SetActiveInputDevicePart(InputDevicePartType.HandRight, false);
  82. yield return null;
  83. yield return new WaitForSeconds(12);
  84. }
  85. lowPowerCoroutine = null;
  86. }
  87. internal delegate void GestureChangeDelegate(int gesture);
  88. IEnumerator StartGreyHand() {
  89. yield return new WaitUntil(() => SvrManager.Instance != null);
  90. yield return new WaitUntil(() => SvrManager.Instance.IsRunning==true);
  91. if(Application.platform == RuntimePlatform.Android) {
  92. try {
  93. if(isHandTrackStart == false) {
  94. isHandTrackStart = true;
  95. DebugMy.Log("ScHANDTRACK_Start", this, true);
  96. ScHANDTRACK_Start(LowPowerWarningCallback);
  97. ScHANDTRACK_SetGestureCallback(GestureChangeCallback);
  98. ScHANDTRACK_SetGestureData(InputDataGGT26Dof.handsInfo.originDataMode, InputDataGGT26Dof.handsInfo.originDataPose);
  99. ScHANDTRACK_SetGestureModelDataCallback(GestureModelDataChangeCallback);
  100. }
  101. } catch(Exception e) {
  102. Debug.Log(e);
  103. }
  104. }
  105. }
  106. public override void OnSCStart() {
  107. base.OnSCStart();
  108. StartCoroutine(StartGreyHand());
  109. }
  110. public override void OnSCDisable() {
  111. base.OnSCDisable();
  112. if(Application.platform == RuntimePlatform.Android) {
  113. try {
  114. if(isHandTrackStart) {
  115. isHandTrackStart = false;
  116. DebugMy.Log("ScHANDTRACK_Stop", this, true);
  117. ScHANDTRACK_Stop();
  118. }
  119. } catch(Exception e) {
  120. Debug.Log(e);
  121. }
  122. }
  123. }
  124. //{1, "THUMB"},
  125. //{2, "ONE"},
  126. //{3, "TWO"},
  127. //{4, "THREE"},
  128. //{5, "FOUR"},
  129. //{6, "FIVE"},
  130. //{7, "OK"},
  131. //{8, "DIRECTION"},
  132. [MonoPInvokeCallback(typeof(GestureChangeDelegate))]
  133. public static void GestureChangeCallback(int gesture) {
  134. Debug.Log("GestureChangeCallback, gesture id:" + gesture);
  135. }
  136. static bool lowPowerTrigger = false;
  137. [MonoPInvokeCallback(typeof(LowPowerWarningDelegate))]
  138. public static void LowPowerWarningCallback(int power) {
  139. Debug.Log("HandGesture Cannot work in low power state:" + power);
  140. lowPowerTrigger = true;
  141. }
  142. protected virtual int HANDTRACK_GetHand_PC(out float[] model, out float[] pose) {
  143. pose = new float[3] { 0, 0, 0 };
  144. #region PCgesture
  145. if (Input.GetKey(KeyCode.Alpha1) == true && Input.GetKey(KeyCode.Alpha2) == false) {
  146. ///左手抓取手型数据
  147. model = new float[256] {
  148. 2f,
  149. 1f,
  150. 21f,
  151. -0.05605574f , -0.0273f , 0.314f,
  152. -0.07f , -0.0447f , 0.3f ,
  153. -0.09515104f , -0.05433898f , 0.2831757f,
  154. -0.1463438f , -0.06028023f , 0.2818089f,
  155. -0.0519f , -0.0216f , 0.3217f,
  156. -0.06158409f , -0.0002f , 0.3183799f,
  157. -0.07964747f , 0.0028f , 0.3071041f,
  158. -0.09945723f , -0.008320909f , 0.2969252f,
  159. -0.06198902f , -0.0038f , 0.3519928f ,
  160. -0.07581183f , 0.0061f , 0.3419357f ,
  161. -0.09352214f , 0.0082f , 0.3285346f ,
  162. -0.1137585f , -0.002121262f , 0.3150989f,
  163. -0.07718303f , -0.0063f , 0.364556f,
  164. -0.08849367f , 0.0018f , 0.3556355f,
  165. -0.1056515f , 0.0004f , 0.3442511f,
  166. -0.1236217f , -0.008046876f , 0.331872f,
  167. -0.09772705f , -0.0135f , 0.3714658f,
  168. -0.1064803f , -0.0118f , 0.3659644f,
  169. -0.1201454f , -0.0166f , 0.3570033f ,
  170. -0.1347919f , -0.02225832f , 0.3441104f,
  171. -0.1562702f , -0.05975028f , 0.2943733f ,
  172. 2f,
  173. 21f,
  174. 0.01329147f , -0.05185008f , 0.2831516f,
  175. 0.02629676f , -0.05859572f , 0.2733593f ,
  176. 0.04144813f , -0.06611566f , 0.2669144f,
  177. 0.09289996f , -0.07803007f , 0.2608919f,
  178. 0.008512383f , 0.008053687f , 0.2999706f,
  179. 0.0184048f , 0.004125214f , 0.2896651f ,
  180. 0.0309000f , -0.00680000f , 0.27900000f ,
  181. 0.05151144f , -0.02237571f , 0.2674141f,
  182. 0.02381282f , 0.02699578f , 0.3218553f,
  183. 0.03562622f , 0.01996369f , 0.3106135f,
  184. 0.05122653f , 0.008665001f , 0.2939393f,
  185. 0.06585947f , -0.01085604f , 0.2825926f,
  186. 0.04237749f , 0.01809751f , 0.3312246f ,
  187. 0.05178002f , 0.01224715f , 0.3221904f,
  188. 0.0659532f , 0.003831701f , 0.3083498f,
  189. 0.07914048f , -0.01247946f , 0.296542f,
  190. 0.06218155f , 0.002945414f , 0.3410454f ,
  191. 0.07016665f , -0.002003442f , 0.3339252f,
  192. 0.08204032f , -0.01003692f , 0.322701f,
  193. 0.09209882f , -0.02350484f , 0.3101943f ,
  194. 0.1055621f , -0.07391939f , 0.2699004f ,
  195. 0,
  196. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  197. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  198. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  199. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  200. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  201. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  202. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  203. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  204. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  205. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  206. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  207. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  208. 0,0,0,0
  209. };
  210. } else if ((Input.GetKey(KeyCode.Alpha1) == false && Input.GetKey(KeyCode.Alpha2)) == true) {
  211. ///右手手抓取手型数据
  212. model = new float[256] {
  213. 2f,
  214. 1f,
  215. 21f,
  216. -0.05605574f , -0.04518472f , 0.2970701f,
  217. -0.07650252f , -0.04899639f , 0.2892286f ,
  218. -0.09515104f , -0.05433898f , 0.2831757f,
  219. -0.1463438f , -0.06028023f , 0.2818089f,
  220. -0.04933745f , 0.01041036f , 0.3268114f,
  221. -0.06158409f , 0.009036704f , 0.3183799f,
  222. -0.07964747f , 0.0015f , 0.3071041f,
  223. -0.09945723f , -0.008320909f , 0.2969252f,
  224. -0.06198902f , 0.02461821f , 0.3519928f ,
  225. -0.07581183f , 0.02041251f , 0.3419357f ,
  226. -0.09352214f , 0.01374155f , 0.3285346f ,
  227. -0.1137585f , -0.002121262f , 0.3150989f,
  228. -0.07718303f , 0.01460867f , 0.364556f,
  229. -0.08849367f , 0.01155128f , 0.3556355f,
  230. -0.1056515f , 0.005635553f , 0.3442511f,
  231. -0.1236217f , -0.008046876f , 0.331872f,
  232. -0.09772705f , -0.003397862f , 0.3714658f,
  233. -0.1064803f , -0.005923742f , 0.3659644f,
  234. -0.1201454f , -0.01133183f , 0.3570033f ,
  235. -0.1347919f , -0.02225832f , 0.3441104f,
  236. -0.1562702f , -0.05975028f , 0.2943733f ,
  237. 2f,
  238. 21f,
  239. 0.0159f , -0.0299f , 0.2831516f,
  240. 0.0348f , -0.0511f , 0.2733593f ,
  241. 0.0491f , -0.0602f , 0.2669144f,
  242. 0.09289996f , -0.07803007f , 0.2608919f,
  243. 0.0085f , -0.0223f , 0.2917f,
  244. 0.0184f , -0.0117f , 0.28966f ,
  245. 0.0338265f , -0.0106f , 0.2750752f ,
  246. 0.05151144f , -0.02237571f , 0.2674141f,
  247. 0.02381282f , -0.005f , 0.3218553f,
  248. 0.03562622f , 0.0052f , 0.3106135f,
  249. 0.05122653f , 0.0032f , 0.2939393f,
  250. 0.06585947f , -0.01085604f , 0.2825926f,
  251. 0.04237749f , 0.002f , 0.3312246f ,
  252. 0.05178002f , 0.0005f , 0.3221904f,
  253. 0.0659532f , -0.002f , 0.3083498f,
  254. 0.07914048f , -0.01247946f , 0.296542f,
  255. 0.06218155f , 0.002945414f , 0.3410454f ,
  256. 0.07016665f , -0.002003442f , 0.3339252f,
  257. 0.08204032f , -0.01003692f , 0.322701f,
  258. 0.09209882f , -0.02350484f , 0.3101943f ,
  259. 0.1055621f , -0.07391939f , 0.2699004f ,
  260. 0,
  261. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  262. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  263. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  264. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  265. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  266. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  267. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  268. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  269. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  270. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  271. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  272. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  273. 0,0,0,0
  274. };
  275. } else if (Input.GetMouseButton(0) || Input.GetKey(KeyCode.Alpha1) == true && Input.GetKey(KeyCode.Alpha2) == true) {
  276. ///双手抓取手型数据
  277. model = new float[256] {
  278. 2f,
  279. 1f,
  280. 21f,
  281. -0.05605574f , -0.0273f , 0.314f,
  282. -0.07f , -0.0447f , 0.3f ,
  283. -0.09515104f , -0.05433898f , 0.2831757f,
  284. -0.1463438f , -0.06028023f , 0.2818089f,
  285. -0.0519f , -0.0216f , 0.3217f,
  286. -0.06158409f , -0.0002f , 0.3183799f,
  287. -0.07964747f , 0.0028f , 0.3071041f,
  288. -0.09945723f , -0.008320909f , 0.2969252f,
  289. -0.06198902f , -0.0038f , 0.3519928f ,
  290. -0.07581183f , 0.0061f , 0.3419357f ,
  291. -0.09352214f , 0.0082f , 0.3285346f ,
  292. -0.1137585f , -0.002121262f , 0.3150989f,
  293. -0.07718303f , -0.0063f , 0.364556f,
  294. -0.08849367f , 0.0018f , 0.3556355f,
  295. -0.1056515f , 0.0004f , 0.3442511f,
  296. -0.1236217f , -0.008046876f , 0.331872f,
  297. -0.09772705f , -0.0135f , 0.3714658f,
  298. -0.1064803f , -0.0118f , 0.3659644f,
  299. -0.1201454f , -0.0166f , 0.3570033f ,
  300. -0.1347919f , -0.02225832f , 0.3441104f,
  301. -0.1562702f , -0.05975028f , 0.2943733f ,
  302. 2f,
  303. 21f,
  304. 0.0159f , -0.0299f , 0.2831516f,
  305. 0.0348f , -0.0511f , 0.2733593f ,
  306. 0.0491f , -0.0602f , 0.2669144f,
  307. 0.09289996f , -0.07803007f , 0.2608919f,
  308. 0.0085f , -0.0223f , 0.2917f,
  309. 0.0184f , -0.0117f , 0.28966f ,
  310. 0.0338265f , -0.0106f , 0.2750752f ,
  311. 0.05151144f , -0.02237571f , 0.2674141f,
  312. 0.02381282f , -0.005f , 0.3218553f,
  313. 0.03562622f , 0.0052f , 0.3106135f,
  314. 0.05122653f , 0.0032f , 0.2939393f,
  315. 0.06585947f , -0.01085604f , 0.2825926f,
  316. 0.04237749f , 0.002f , 0.3312246f ,
  317. 0.05178002f , 0.0005f , 0.3221904f,
  318. 0.0659532f , -0.002f , 0.3083498f,
  319. 0.07914048f , -0.01247946f , 0.296542f,
  320. 0.06218155f , 0.002945414f , 0.3410454f ,
  321. 0.07016665f , -0.002003442f , 0.3339252f,
  322. 0.08204032f , -0.01003692f , 0.322701f,
  323. 0.09209882f , -0.02350484f , 0.3101943f ,
  324. 0.1055621f , -0.07391939f , 0.2699004f ,
  325. 0,
  326. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  327. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  328. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  329. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  330. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  331. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  332. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  333. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  334. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  335. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  336. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  337. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  338. 0,0,0,0
  339. };
  340. } else {
  341. ///正常张开手型数据
  342. model = new float[256] {
  343. 2f,
  344. 1f,
  345. 21f,
  346. -0.05605574f , -0.04518472f , 0.2970701f,
  347. -0.07650252f , -0.04899639f , 0.2892286f ,
  348. -0.09515104f , -0.05433898f , 0.2831757f,
  349. -0.1463438f , -0.06028023f , 0.2818089f,
  350. -0.04933745f , 0.01041036f , 0.3268114f,
  351. -0.06158409f , 0.009036704f , 0.3183799f,
  352. -0.07964747f , 0.0015f , 0.3071041f,
  353. -0.09945723f , -0.008320909f , 0.2969252f,
  354. -0.06198902f , 0.02461821f , 0.3519928f ,
  355. -0.07581183f , 0.02041251f , 0.3419357f ,
  356. -0.09352214f , 0.01374155f , 0.3285346f ,
  357. -0.1137585f , -0.002121262f , 0.3150989f,
  358. -0.07718303f , 0.01460867f , 0.364556f,
  359. -0.08849367f , 0.01155128f , 0.3556355f,
  360. -0.1056515f , 0.005635553f , 0.3442511f,
  361. -0.1236217f , -0.008046876f , 0.331872f,
  362. -0.09772705f , -0.003397862f , 0.3714658f,
  363. -0.1064803f , -0.005923742f , 0.3659644f,
  364. -0.1201454f , -0.01133183f , 0.3570033f ,
  365. -0.1347919f , -0.02225832f , 0.3441104f,
  366. -0.1562702f , -0.05975028f , 0.2943733f ,
  367. 2f,
  368. 21f,
  369. 0.01329147f , -0.05185008f , 0.2831516f,
  370. 0.02629676f , -0.05859572f , 0.2733593f ,
  371. 0.04144813f , -0.06611566f , 0.2669144f,
  372. 0.09289996f , -0.07803007f , 0.2608919f,
  373. 0.008512383f , 0.008053687f , 0.2999706f,
  374. 0.0184048f , 0.004125214f , 0.2896651f ,
  375. 0.0309000f , -0.00680000f , 0.27900000f ,
  376. 0.05151144f , -0.02237571f , 0.2674141f,
  377. 0.02381282f , 0.02699578f , 0.3218553f,
  378. 0.03562622f , 0.01996369f , 0.3106135f,
  379. 0.05122653f , 0.008665001f , 0.2939393f,
  380. 0.06585947f , -0.01085604f , 0.2825926f,
  381. 0.04237749f , 0.01809751f , 0.3312246f ,
  382. 0.05178002f , 0.01224715f , 0.3221904f,
  383. 0.0659532f , 0.003831701f , 0.3083498f,
  384. 0.07914048f , -0.01247946f , 0.296542f,
  385. 0.06218155f , 0.002945414f , 0.3410454f ,
  386. 0.07016665f , -0.002003442f , 0.3339252f,
  387. 0.08204032f , -0.01003692f , 0.322701f,
  388. 0.09209882f , -0.02350484f , 0.3101943f ,
  389. 0.1055621f , -0.07391939f , 0.2699004f ,
  390. 0,
  391. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  392. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  393. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  394. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  395. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  396. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  397. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  398. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  399. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  400. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  401. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  402. 0,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,
  403. 0,0,0,0
  404. };
  405. }
  406. #endregion
  407. //if(Input.GetKey(KeyCode.W) == true) {
  408. // temp +=Vector3.forward* Time.deltaTime * 0.1f;
  409. //}
  410. //if(Input.GetKey(KeyCode.A) == true) {
  411. // temp += Vector3.left * Time.deltaTime * 0.1f;
  412. //}
  413. //if(Input.GetKey(KeyCode.D) == true) {
  414. // temp += Vector3.right * Time.deltaTime * 0.1f;
  415. //}
  416. //if(Input.GetKey(KeyCode.S) == true) {
  417. // temp += Vector3.back * Time.deltaTime * 0.1f;
  418. //}
  419. //pose[0] = temp.x;
  420. //pose[1] = temp.y;
  421. //pose[2] = temp.z;
  422. return 0;
  423. }
  424. }
  425. }