Skip to content

Commit e549948

Browse files
Finished Hand Models, Hand manipulation, and VIVE tracking into hands.
Most API mysteries solved, manus hands ready for additional collider or action integration.
1 parent ca43848 commit e549948

File tree

8 files changed

+2803
-940
lines changed

8 files changed

+2803
-940
lines changed

Box_wall_test.unity

Lines changed: 731 additions & 910 deletions
Large diffs are not rendered by default.

LeftHand_Manus.prefab

Lines changed: 1021 additions & 0 deletions
Large diffs are not rendered by default.

LeftHand_Manus.prefab.meta

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Manus Interfacing/Manus_interpreter.cs

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ public class Manus_interpreter : MonoBehaviour
4545

4646
public int my_finger_opt = 2;
4747
public Quaternion my_quart;
48+
public Vector3 my_vec;
4849
public int select_option = 2;
4950

5051
//Connected
@@ -161,9 +162,15 @@ void Update()
161162
middle = ls[1];
162163
ring = ls[2];
163164
thumb = ls[3];
164-
List<Finger> tempF = this.hands[1].get_hand();
165-
List<pose> ps = tempF[1].get_finger_data();
166-
my_quart = ps[2].rotation;
165+
//List<Finger> tempF = this.hands[1].get_hand();
166+
//List<pose> ps = tempF[my_finger_opt].get_finger_data();
167+
//my_quart = ps[select_option].rotation;
168+
my_quart = this.hands[1].get_wrist();
169+
my_quart.x = (my_quart.x * 180F) / 3.14165F;
170+
my_quart.y = (my_quart.y * 180F) / 3.14165F;
171+
my_quart.z = (my_quart.z * 180F) / 3.14165F;
172+
my_quart.w = (my_quart.w * 180F) / 3.14165F;
173+
my_vec = my_quart.eulerAngles;
167174

168175
}
169176
else
@@ -174,9 +181,15 @@ void Update()
174181
middle = ls[1];
175182
ring = ls[2];
176183
thumb = ls[3];
177-
List<Finger> tempF = this.hands[0].get_hand();
178-
List<pose> ps = tempF[my_finger_opt].get_finger_data();
179-
my_quart = ps[select_option].rotation;
184+
//List<Finger> tempF = this.hands[0].get_hand();
185+
//List<pose> ps = tempF[my_finger_opt].get_finger_data();
186+
//my_quart = ps[select_option].rotation;
187+
my_quart = this.hands[0].get_wrist();
188+
my_quart.x = (my_quart.x * 180F) / 3.14165F;
189+
my_quart.y = (my_quart.y * 180F) / 3.14165F;
190+
my_quart.z = (my_quart.z * 180F) / 3.14165F;
191+
my_quart.w = (my_quart.w * 180F) / 3.14165F;
192+
my_vec = my_quart.eulerAngles;
180193
}
181194
//Quaternion q = hands[0].get_wrist();
182195

0 commit comments

Comments
 (0)