| 249 | } |
| 250 | |
| 251 | void RecordHand() |
| 252 | { |
| 253 | if (recordingHand.Count != 0 && Time.Totalf - recordingHand[recordingHand.Count - 1].time < 0.2f) |
| 254 | return; |
| 255 | |
| 256 | Hand h = Input.Hand(Handed.Right); |
| 257 | HandJoint[] joints = new HandJoint[27]; |
| 258 | Array.Copy(h.fingers,0,joints,0,25); |
| 259 | joints[25] = new HandJoint(h.palm.position, h.palm.orientation, 0); |
| 260 | joints[26] = new HandJoint(h.wrist.position, h.wrist.orientation, 0); |
| 261 | recordingHand.Add((Time.Totalf, joints)); |
| 262 | } |
| 263 | void ToggleRecordHand() |
| 264 | { |
| 265 | recordHand = !recordHand; |