Skip to content

Commit

Permalink
feat(objects/hand): make fingertips pointy
Browse files Browse the repository at this point in the history
  • Loading branch information
technobaboo committed Jun 27, 2024
1 parent f08f3e4 commit e5d0906
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/objects/input/sk_hand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,13 @@ impl SkHand {
hand.thumb.proximal = convert_joint(sk_hand.fingers[0][2]);
hand.thumb.metacarpal = convert_joint(sk_hand.fingers[0][1]);

for (finger, sk_finger) in [
for (finger, mut sk_finger) in [
(&mut hand.index, sk_hand.fingers[1]),
(&mut hand.middle, sk_hand.fingers[2]),
(&mut hand.ring, sk_hand.fingers[3]),
(&mut hand.little, sk_hand.fingers[4]),
] {
sk_finger[4].radius = 0.0;
finger.tip = convert_joint(sk_finger[4]);
finger.distal = convert_joint(sk_finger[3]);
finger.intermediate = convert_joint(sk_finger[2]);
Expand Down

0 comments on commit e5d0906

Please sign in to comment.