/// <summary>
 /// The entry method used to externally set
 /// the raw values needed for each hand
 /// </summary>
 /// <param name="hand">The identifier of the hand to be set</param>
 /// <param name="rotationAnalogue">The raw analogue rotation of the corresponding hand</param>
 /// <param name="fist">The raw analogue clench value of the corresponding hand</param>
 public void setHandAttributes(HandId hand, float rotationAnalogue, float fist)
 {
     if (hand == HandId.LEFT)
     {
         LeftRotationAnalogue = rotationAnalogue;
         LeftFist             = fist;
     }
     else
     {
         RightRotationAnalogue = rotationAnalogue;
         RightFist             = fist;
     }
 }
示例#2
0
 public ClientUseItem(VarInt hand)
 {
     Hand = hand.AsEnum <HandId>();
 }
示例#3
0
 public ClientAnimation(VarInt hand)
 {
     Hand = (HandId)hand.Value;
 }