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

Returns true if the player is leaning forwards / bowing.

Definition at line 194 of file AVR_PlayerRig.cs.

195  {
196  return MainCamera.transform.rotation.eulerAngles.x > 55.0f && MainCamera.transform.rotation.eulerAngles.x < 120.0f;
197  }