Interface IProvidesViewerBody
Provide access to checks that can test against the viewer's body
Namespace: Unity.Labs.EditorXR.Interfaces
Syntax
public interface IProvidesViewerBody : IFunctionalityProvider
Methods
IsAboveHead(Transform)
Returns whether the specified transform is over the viewer's head
Declaration
bool IsAboveHead(Transform rayOrigin)
Parameters
Type | Name | Description |
---|---|---|
Transform | rayOrigin | The rayOrigin to test |
Returns
Type | Description |
---|---|
Boolean |
IsOverShoulder(Transform)
Returns whether the specified transform is over the viewer's shoulders and behind the head
Declaration
bool IsOverShoulder(Transform rayOrigin)
Parameters
Type | Name | Description |
---|---|---|
Transform | rayOrigin | The rayOrigin to test |
Returns
Type | Description |
---|---|
Boolean |