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

Definition at line 121 of file AVR_PoseAssumer.cs.

121  {
122  #if AVR_NET
123  if (!playerRig) return; // Sometimes this happens on MP for 1 frame.
124  #endif
125 
126 
127  if(autoLayerBlend) {
128  layerBlend = Mathf.Lerp(layerBlend, Mathf.SmoothStep(1.0f, 0.0f, playerRig.AvgMotion.magnitude), layerBlend_speed * Time.deltaTime);
129  }
130  }
float layerBlend_speed
Speed of how quickly we blend in and out of the IK layer (if autoLayerBlend is true) ...
AVR_PlayerRig playerRig
The current AVR_PlayerRig instance in the scene
bool autoLayerBlend
If true, we automatically blend the weight of the IK layer to inverse proportion of the playerRigs' s...