Beispiel #1
0
 private void UpdateMuscleIndices(int[] indices, PoseAnimator animator)
 {
     animator.UpdatePose();
     for (int m = 0; m < indices.Length; m++)
     {
         var muscleIndex = indices[m];
         var value       = animator.HumanPose.muscles[muscleIndex];
         //animator.UpdateMuscle(muscleIndex, value);
         var muscle = GetMuscle(muscleIndex);
         if (muscle == null)
         {
             muscle = new SavedMuscle(muscleIndex, value);
             Pose.Add(muscle);
         }
         else
         {
             muscle.Value = value;
         }
     }
 }
 public void Set(SavedMuscle muscle, float start)
 {
     MuscleIndex = muscle.MuscleIndex;
     Target      = muscle.Value;
     Start       = start;
 }
 public SavedMuscleInstance(SavedMuscle muscle, float start)
 {
     MuscleIndex = muscle.MuscleIndex;
     Target      = muscle.Value;
     Start       = start;
 }
 public SavedMuscleInstance(SavedMuscle muscle)
 {
     MuscleIndex = muscle.MuscleIndex;
     Target      = muscle.Value;
 }