VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.Phys.AVR_DebugHand.Update ( )
inlineprivate

Definition at line 40 of file AVR_DebugHand.cs.

41  {
42  node = GetComponentInParent<AVR_GrabNode>();
43 
44  transform.localRotation = Quaternion.identity * Quaternion.Euler(node.yaw_test * node.allowed_yaw, node.pitch_test * node.allowed_pitch, node.roll_test * node.allowed_roll);
45 
46  transform.position = node.transform.position - (grab_point.position - transform.position);
47 
48  //foreach (AVR_Finger f in fingers) f.Update();
49  animator.SetLayerWeight(1, 1.0f);
50  animator.SetLayerWeight(2, 1.0f);
51  animator.SetLayerWeight(3, 1.0f);
52  animator.SetLayerWeight(4, 1.0f);
53  animator.SetLayerWeight(5, 1.0f);
54 
55  animator.Play("Proc_IndexFinger", 1, node.index_pose);
56  animator.Play("Proc_MiddleFinger", 2, node.middle_pose);
57  animator.Play("Proc_RingFinger", 3, node.ring_pose);
58  animator.Play("Proc_PinkyFinger", 4, node.pinky_pose);
59  animator.Play("Proc_ThumbFinger", 5, node.thumb_pose);
60  animator.Update(0.0f);
61  }