VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
bool AVR.Motion.AVR_MovementRestrictor.isValidTpLocation ( RaycastHit  loc)
inline

Definition at line 35 of file AVR_MovementRestrictor.cs.

36  {
37  if (limitTPLocation_bySlope && Vector3.Angle(Vector3.up, loc.normal) > validTPmaxSlope) return false;
38  if (limitTPLocation_byTag && !loc.collider.gameObject.CompareTag(validTPTag)) return false;
39  if (limitTPLocation_byLayer && (validTPLayers & 1 << loc.collider.gameObject.layer) < 1) return false;
40  return true;
41  }