Class UsesViewerBodyMethods
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public static class UsesViewerBodyMethods
Methods
IsAboveHead(IUsesViewerBody, Transform)
Returns whether the specified transform is over the viewer's head
Declaration
public static bool IsAboveHead(this IUsesViewerBody user, Transform rayOrigin)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesViewerBody | user | The functionality user |
| Transform | rayOrigin | The rayOrigin to test |
Returns
| Type | Description |
|---|---|
| Boolean |
IsOverShoulder(IUsesViewerBody, Transform)
Returns whether the specified transform is over the viewer's shoulders and behind the head
Declaration
public static bool IsOverShoulder(this IUsesViewerBody user, Transform rayOrigin)
Parameters
| Type | Name | Description |
|---|---|---|
| IUsesViewerBody | user | The functionality user |
| Transform | rayOrigin | The rayOrigin to test |
Returns
| Type | Description |
|---|---|
| Boolean |