VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
float AVR.Core.AVR_PlayerRig.isLeaningForwardsConfidence ( )
inline

Returns a confidence value of how much the player is leaning forwards / bowing.

Definition at line 202 of file AVR_PlayerRig.cs.

203  {
204  return Mathf.Clamp((MainCamera.transform.rotation.eulerAngles.x - 40.0f) / 30.0f, 0.0f, 1.0f);
205  }