VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
void AVR.Avatar.AVR_PoseAssumer.setWeights ( int  layerIndex)
inlineprotected

Definition at line 132 of file AVR_PoseAssumer.cs.

132  {
133  float layerWeight = animator.GetLayerWeight(layerIndex);
134 
135  animator.SetLookAtWeight(lookAtWeight*layerWeight, lookAtWeight_body*layerWeight, lookAtWeight_head*layerWeight, lookAtWeight_eyes*layerWeight, lookAtWeight_clamp*layerWeight);
136  animator.SetIKPositionWeight(AvatarIKGoal.LeftHand, HandPosWeight*layerWeight);
137  animator.SetIKRotationWeight(AvatarIKGoal.LeftHand, HandRotWeight*layerWeight);
138  animator.SetIKPositionWeight(AvatarIKGoal.RightHand, HandPosWeight*layerWeight);
139  animator.SetIKRotationWeight(AvatarIKGoal.RightHand, HandRotWeight*layerWeight);
140  animator.SetIKPositionWeight(AvatarIKGoal.LeftFoot, FootPosWeight*layerWeight);
141  animator.SetIKRotationWeight(AvatarIKGoal.LeftFoot, FootRotWeight*layerWeight);
142  animator.SetIKPositionWeight(AvatarIKGoal.RightFoot, FootPosWeight*layerWeight);
143  animator.SetIKRotationWeight(AvatarIKGoal.RightFoot, FootRotWeight*layerWeight);
144  }