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

Definition at line 462 of file AVR_PoseProvider.cs.

462  {
463  Vector3 r_origin = bodyTransform.position;
464 
465  if (Physics.Raycast(r_origin, Vector3.down, out RaycastHit hit, 2.0f, groundCollisionMask))
466  {
467  pivotTransform.position = hit.point;
468  }
469 
470  pivotTransform.forward = playerRig.XZPlaneFacingDirection;
471  }
LayerMask groundCollisionMask
Collision mask of the ground