VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Vector3 AVR.Avatar.AVR_PoseProvider.ApplyInertia ( Vector3  current,
Vector3  target 
)
inlineprivate

Definition at line 282 of file AVR_PoseProvider.cs.

282  {
283  float dist = Vector3.Distance(current, target);
284  float move_mult = Mathf.SmoothStep(0f, 1f, dist / body_inertia);
285  return Vector3.MoveTowards(current, target, dist*move_mult);
286  }
float body_inertia
Inertia of the body. (Increasing this will help with micromovements and stutters of the body) ...