/// <summary> /// Check whether the specified transform is over the viewer's head /// </summary> /// <param name="user">The functionality user</param> /// <param name="rayOrigin">The rayOrigin to test</param> /// <returns>Whether the specified transform is over the viewer's head</returns> public static bool IsAboveHead(this IUsesViewerBody user, Transform rayOrigin) { #if FI_AUTOFILL return(default(bool)); #else return(user.provider.IsAboveHead(rayOrigin)); #endif }
/// <summary> /// Returns whether the specified transform is over the viewer's head /// </summary> /// <param name="rayOrigin">The rayOrigin to test</param> public static bool IsAboveHead(this IUsesViewerBody obj, Transform rayOrigin) { return(isAboveHead(rayOrigin)); }
/// <summary> /// Returns whether the specified transform is over the viewer's shoulders and behind the head /// </summary> /// <param name="rayOrigin">The rayOrigin to test</param> public static bool IsOverShoulder(this IUsesViewerBody obj, Transform rayOrigin) { return(isOverShoulder(rayOrigin)); }