MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / RecordHand

Method RecordHand

Examples/StereoKitTest/DebugToolWindow.cs:251–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

HandMethod · 0.45
CopyMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected