Create a gist now

Instantly share code, notes, and snippets.

Leap frame example
{
"hands":[
{
"direction":[
-0.255273,
0.810761,
-0.526785
],
"id":6,
"palmNormal":[
0.358301,
-0.426719,
-0.83038
],
"palmPosition":[
-30.8295,
323.103,
108.564
],
"palmVelocity":[
20.5367,
-206.261,
-14.4571
],
"r":[
[
0.999428,
-0.0222846,
0.0254187
],
[
0.0224274,
0.999734,
-0.00534716
],
[
-0.0252928,
0.00591418,
0.999663
]
],
"s":0.989659,
"sphereCenter":[
-37.5708,
330.747,
110.834
],
"sphereRadius":60.9963,
"t":[
-10.4231,
-27.763,
-2.61139
]
},
{
"direction":[
0.99381,
0.050579,
0.0989115
],
"id":4,
"palmNormal":[
0.0144319,
0.824023,
-0.566373
],
"palmPosition":[
-58.5162,
253.848,
219.111
],
"palmVelocity":[
106.401,
-193.593,
-237.914
],
"r":[
[
1,
0,
0
],
[
0,
1,
0
],
[
0,
0,
1
]
],
"s":1,
"sphereCenter":[
-64.4467,
254.441,
253.549
],
"sphereRadius":78.1685,
"t":[
-7.61533,
5.89351,
11.5348
]
}
],
"id":281816,
"pointables":[
{
"direction":[
-0.73411,
-0.140792,
0.664274
],
"handId":-1,
"id":7,
"length":36.61,
"tipPosition":[
-56.6971,
302.241,
120.827
],
"tipVelocity":[
-151.965,
24.582,
-10.5357
],
"tool":false
}
],
"r":[
[
-0.330213,
-0.179438,
-0.926694
],
[
-0.923673,
-0.140759,
0.356392
],
[
-0.19439,
0.973647,
-0.119261
]
],
"s":24.6888,
"t":[
673.257,
-3498.39,
-3061.77
],
"timestamp":2793496052
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment